Jenkinsfile 243 Bytes Edit Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 stage 'Init' node { checkout scm sh 'echo $BRANCH_NAME' } if (env.BRANCH_NAME == 'master') { stage 'Only on master' println 'This happens only on master' } else { stage 'Other branches' println "Current branch ${env.BRANCH_NAME}" }