Skip to content

Commit

Permalink
Ginkgo: Fixed Branch Variable on Ginkgo.Jenkinsfile
Browse files Browse the repository at this point in the history
In the list of env variables set by Jenkins,  `BRANCH_NAME` is not present,
but GIT_BRANCH is present with the value `origin/master`. Fixed the
ginkgo.Jenkinsfile to run all test on master.

Signed-off-by: Eloy Coto <eloy.coto@gmail.com>
  • Loading branch information
eloycoto authored and tgraf committed Jan 5, 2018
1 parent 5078434 commit bb94402
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ginkgo.Jenkinsfile
Expand Up @@ -52,7 +52,7 @@ pipeline {
stage('BDD-Test-Master') {
when {
expression {
return env.BRANCH_NAME == 'master';
return env.GIT_BRANCH == 'origin/master';
}
}
environment {
Expand Down Expand Up @@ -89,7 +89,7 @@ pipeline {
stage('BDD-Test-PR') {
when {
expression {
return env.BRANCH_NAME != 'master';
return env.GIT_BRANCH != 'origin/master';
}
}
environment {
Expand Down

0 comments on commit bb94402

Please sign in to comment.