FIX deploy conditions
@@ -45,6 +45,8 @@ pipeline {
returnStdout: true).trim()
}
echo "Version: ${getVar(G_binversion)}."
+ echo "Branch: ${GIT_BRANCH}"
+ echo "Possible RC: ${getVar(G_binversion)}-rc"
}
}
stage('Building...') {
@@ -73,6 +75,11 @@ pipeline {
}
}
stage('Deploy') {
+ when {
+ expression {
+ GIT_BRANCH == 'master' || GIT_BRANCH == "${getVar(G_binversion)}-rc"
+ }
+ }
steps {
dir('ton_client/client/bin') {
script {
@@ -112,6 +119,11 @@ pipeline {
}
}
stage('Deploy') {
+ when {
+ expression {
+ GIT_BRANCH == 'master' || GIT_BRANCH == "${getVar(G_binversion)}-rc"
+ }
+ }
steps {
dir('ton_client/client/bin') {
script {
@@ -151,6 +163,11 @@ pipeline {
}
}
stage('Deploy') {
+ when {
+ expression {
+ GIT_BRANCH == 'master' || GIT_BRANCH == "${getVar(G_binversion)}-rc"
+ }
+ }
steps {
dir('ton_client/client/bin') {
script {
@@ -198,7 +215,11 @@ pipeline {
}
}
stage('Deploy') {
- when { branch 'master' }
+ when {
+ expression {
+ GIT_BRANCH == 'master' || GIT_BRANCH == "${getVar(G_binversion)}-rc"
+ }
+ }
steps {
dir('ton_client/platforms/ton-client-react-native/output') {
script {
@@ -251,7 +272,11 @@ pipeline {
}
}
stage('Deploy') {
- when { branch 'master' }
+ when {
+ expression {
+ GIT_BRANCH == 'master' || GIT_BRANCH == "${getVar(G_binversion)}-rc"
+ }
+ }
steps {
dir('ton_client/platforms/ton-client-node-js/bin') {
script {
@@ -304,7 +329,11 @@ pipeline {
}
}
stage('Deploy') {
- when { branch 'master' }
+ when {
+ expression {
+ GIT_BRANCH == 'master' || GIT_BRANCH == "${getVar(G_binversion)}-rc"
+ }
+ }
steps {
dir('ton_client/platforms/ton-client-node-js/bin') {
script {
@@ -359,7 +388,11 @@ pipeline {
}
}
stage('Deploy') {
- when { branch 'master' }
+ when {
+ expression {
+ GIT_BRANCH == 'master' || GIT_BRANCH == "${getVar(G_binversion)}-rc"
+ }
+ }
steps {
dir('ton_client/platforms/ton-client-node-js/bin') {
script {
@@ -426,7 +459,11 @@ pipeline {
}
}
stage('Deploy') {
- when { branch 'master' }
+ when {
+ expression {
+ GIT_BRANCH == 'master' || GIT_BRANCH == "${getVar(G_binversion)}-rc"
+ }
+ }
steps {
dir('ton_client/platforms/ton-client-web/bin') {
script {
