IntroductionThis document is a howto on writing an SCM plugin for Jenkins. It is based on my experiences writing the Team Foundation Server Plugin. PrerequisitesFor the rest of this howto, it is assumed that the plugin development environment has been set up according to the Plugin tutorial. Determining configuration optionsFirst you should investigate on what configuration parameters that the SCM should have and should not have. It is advisable to keep the number of configuration points as low as possible to be in line with the easiness as the rest of Jenkins. For the Team Foundation Server I have determined that the following configuration parameters are needed:
The global configuration page should configure
Determining change log elementsSecondly, you should determine what data you would like to store in the change log for each build. The change log should contain information such as the author, date, message. Team Foundation Server change sets contains the following information:
Sections
|
Writing an SCM plugin
Skip to end of metadata
Go to start of metadata
Add Comment