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

OZG-5907 update jenkinsfile

parent 0d43a826
No related branches found
No related tags found
No related merge requests found
...@@ -106,7 +106,7 @@ pipeline { ...@@ -106,7 +106,7 @@ pipeline {
} }
} }
stage('Server') { stage('Build Server artefacts, build and push docker image') {
steps { steps {
script { script {
FAILED_STAGE=env.STAGE_NAME FAILED_STAGE=env.STAGE_NAME
...@@ -155,13 +155,16 @@ pipeline { ...@@ -155,13 +155,16 @@ pipeline {
} }
} }
stage('Tag and Push Docker Image') { stage('Tag and Push Docker Image') {
when {
anyOf {
branch 'master'
branch 'release'
}
}
steps { steps {
script { script {
FAILED_STAGE = env.STAGE_NAME FAILED_STAGE = env.STAGE_NAME
IMAGE_TAG = generateImageTag()
tagAndPushDockerImage(IMAGE_TAG)
if (isMasterBranch()) { if (isMasterBranch()) {
tagAndPushDockerImage('snapshot-latest') tagAndPushDockerImage('snapshot-latest')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment