| Dominik Bartholdi - Oh, definitely...which is why it is standardized with multibranch and env.BRANCH. Note that if you're using git, env.BRANCH_NAME will also still be available in a multibranch job, so you can use, say,
when {
expression { return env.BRANCH_NAME == "master" }
}
whether you're in a "Pipeline script from SCM" or multibranch. |