Skip to content

Commit 30eecf3

Browse files
authored
ci: Fix branch detection for snapshot deployment
1 parent 3819dff commit 30eecf3

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

Jenkinsfile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,15 @@ node {
3737
return
3838
}
3939

40+
41+
echo "Current branch is \"${env.BRANCH_NAME}\""
4042
def buildType = 'install'
41-
if ("${env.BRANCH_NAME}".equals('develop')) {
43+
if ('develop'.equals(env.BRANCH_NAME)) {
44+
echo "Using deploy target"
4245
buildType = 'deploy'
46+
} else {
47+
echo "Using install target"
48+
buildType = 'install'
4349
}
4450

4551
stage('Build target-platform') {

0 commit comments

Comments
 (0)