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.
Can we have the Jenkins job always sync with the source code in SCM without having to trigger/build it?