this question different trigger jenkins job when pushing particular git branch.
i not triggering job, want trigger pipeline commits non-master branch. how can achieve that?
a more generic question can can setup pipeline trigger based on tag name regular expression?
place jenkinsfile
in branches want build , use multi-branch project , github organization folder plugins scan branches of github org (bitbucket , iirc gitlab supported).
if fear have duplicate pipeline code on , on again, there's workflow global library, allows centralize common functionality. i'm using simplify jenkinsfile
following lines:
def pipe = new org.typo3.chefci.v1.pipeline() pipe.execute()
and call global library, pipeline configured @ single place.