Skip to content
Snippets Groups Projects
Commit d3419194 authored by OZGCloud's avatar OZGCloud
Browse files

verify test rollout only on release-admin branch

parent 66e85883
No related branches found
No related tags found
No related merge requests found
...@@ -48,7 +48,7 @@ pipeline { ...@@ -48,7 +48,7 @@ pipeline {
} else { } else {
sh 'npm run ci-build-admin' sh 'npm run ci-build-admin'
} }
if (env.BRANCH_NAME == 'master') { if (isMasterBranch()) {
try { try {
withSonarQubeEnv('sonarqube-ozg-sh'){ withSonarQubeEnv('sonarqube-ozg-sh'){
sh 'npm run ci-sonar-admin' sh 'npm run ci-sonar-admin'
...@@ -119,7 +119,7 @@ pipeline { ...@@ -119,7 +119,7 @@ pipeline {
stage('Trigger Test rollout') { stage('Trigger Test rollout') {
when { when {
branch 'release' branch 'release-admin'
} }
steps { steps {
script { script {
...@@ -153,7 +153,7 @@ Boolean isReleaseBranch() { ...@@ -153,7 +153,7 @@ Boolean isReleaseBranch() {
String generateImageTag() { String generateImageTag() {
def imageTag = "${env.BRANCH_NAME}-${VERSION}" def imageTag = "${env.BRANCH_NAME}-${VERSION}"
if (env.BRANCH_NAME == 'master') { if (isMasterBranch()) {
imageTag += "-${env.GIT_COMMIT.take(7)}" imageTag += "-${env.GIT_COMMIT.take(7)}"
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment