I have a Jenkins job (multibranch pipeline
) setup for a GitHub repo. I want to trigger that job automatically whenever there is a change pushed to that Git repo. How can I achieve this using a Jenkinsfile
?
I want to avoid any config change in the Jenkins job such as Poll SCM
etc. For multibranch pipeline there is no such option as Build whenever a change is pushed to GitHub
build configuration
>mode
toby Jenkinsfile
. Then make sure that github trigegrs jenkins (via project > settings > services > Jenkins (github plugin)) – Bayaderepoll scm
option but that's what I want to avoid. Just to add one more detail - I am using Jenkins Enterprise and we have a folder there to create jobs related to our team. – Lothair