How do I configure a Jenkins Pipeline to be triggered by polling SubVersion?

前端 未结 6 2211
逝去的感伤
逝去的感伤 2020-12-09 04:42

We have been using Jenkins for Continuous Integration for some time. A typical build job specifies the SVN repository and credentials in the \"Source Code Management\" secti

6条回答
  •  旧时难觅i
    2020-12-09 05:11

    The solution that I have found to work is:

    1. Move the pipeline script into a file (the default is JenkinsFile) and store this in the root of my project in SubVersion.
    2. Set my pipeline job definition source to "Pipeline script from SCM", enter the details of where to find my project in SubVersion as per a normal Jenkins build job, and set the Script Path to point at the JenkinsFile containing the pipeline script.
    3. Set the build trigger of the pipeline job to "Poll SCM" and enter a schedule.
    4. Manually run the pipeline job

    It seemed to be step 4, manually running the pipeline job that caused the poll trigger to pick up the correct repository to poll. Before that it didn't seem to know where to look.

提交回复
热议问题