Details
-
Type:
Improvement
-
Status: Open (View Workflow)
-
Priority:
Major
-
Resolution: Unresolved
-
Component/s: github
-
Labels:None
-
Similar Issues:
Description
As described in https://stackoverflow.com/questions/44422691/how-to-force-jenkins-to-reload-a-jenkinsfile
My pipeline is created with the define in SCM way.
After I made some change(Say I added an extra parameter) to the pipeline script I push my code to SCM, in my case github.
I want my pipeline to be sync with my github source so I always get the up to date pipeline to run. It can't be achieved now because it has to be triggered once to get the pipeline updated.
This also applies to the multiple branch jobs. Say I created a job that listens to my repo's event. A new job is automatically generated after a new tag is created. However, the first time the pipeline has no parameters whereas they are defined in my Jenkinsfile.
Expectation:
Can we have the Jenkins job always sync with the source code in SCM without having to trigger/build it?
I'd love to contribute to any possible code change required. If there's any document on how the SCM jenkins pipeline works under the hood to sync changes.