change params.CHANGE_BRANCH to env.CHANGE_BRANCH

This commit is contained in:
Damon Atkins 2018-12-19 18:31:16 +11:00
parent e7f0ab6f19
commit da1fc3288f

View file

@ -98,7 +98,7 @@ pipeline {
stage('linting all') { stage('linting all') {
// perform a full linit if this is a merge forward and the change only lint passed. // perform a full linit if this is a merge forward and the change only lint passed.
when { when {
expression { return params.CHANGE_BRANCH =~ /(?i)^merge[._-]/ } expression { return env.CHANGE_BRANCH =~ /(?i)^merge[._-]/ }
} }
parallel { parallel {
stage('setup full') { stage('setup full') {