-
Bug
-
Resolution: Duplicate
-
Major
-
None
-
Jenkins ver. 2.63
GitLab plugin 1.4.5
So, I've already had to abandon multibranch pipelines because they don't get the gitlab variables that I need for my build. Now, I'm working on a regular pipeline and it doesn't have access to the global BRANCH variable.
So, I can't do pleasant stage conditions like this
when {
branch 'master'
}
I have to write gnarlier conditions
when { environment name: 'gitlabBranch', value: 'master' }
- duplicates
-
JENKINS-45198 Set Env Variables for SCM with Checkout SCM
- Closed