jenkins save docker step executed only in main
LocationBasedServices/smartguide/pipeline/head This commit looks good
LocationBasedServices/smartguide/pipeline/head This commit looks good
This commit is contained in:
Vendored
+3
@@ -28,6 +28,9 @@ pipeline {
|
||||
}
|
||||
|
||||
stage('Save Docker image') {
|
||||
when {
|
||||
branch 'main'
|
||||
}
|
||||
steps {
|
||||
sh 'docker save ${IMAGE_PREFIX}-app:${IMAGE_VERSION} | gzip > app-image.tar.gz'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user