I\'m trying to use Jenkins file for all our builds in Jenkins, and I have following problem. We basically have 3 kind of builds:
Using this post, this worked for me:
stage('...') { when { expression { env.BRANCH_NAME == 'master' } } steps { ... } }