Skip to content

Commit 173737c

Browse files
authored
try again
1 parent a8d5dd6 commit 173737c

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

Jenkinsfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ node {
2525

2626
stage('Preparation') {
2727
dir("kura") {
28-
def scmResult = checkout scm
29-
env.GIT_BRANCH = scmResult.GIT_BRANCH
28+
checkout scm
3029
sh "touch /tmp/isJenkins.txt"
3130
}
3231
}
@@ -39,9 +38,9 @@ node {
3938
}
4039

4140

42-
echo "Current branch is \"${env.GIT_BRANCH}\", primary: ${env.BRANCH_IS_PRIMARY}"
41+
echo "Current branch is \"${scm.branches[0].name}\", primary: ${env.BRANCH_IS_PRIMARY}"
4342
def buildType = 'install'
44-
if (env.BRANCH_IS_PRIMARY && 'develop'.equals(scmResult.GIT_BRANCH)) {
43+
if (env.BRANCH_IS_PRIMARY && 'develop'.equals(scm.branches[0].name)) {
4544
echo "Using deploy target"
4645
buildType = 'deploy'
4746
} else {

0 commit comments

Comments
 (0)