Tryiing to fix Jenkins.
This commit is contained in:
Vendored
+7
-1
@@ -9,9 +9,10 @@ pipeline {
|
||||
environment {
|
||||
IMAGE_NAME = "shagram"
|
||||
DEPLOY_DIR = "/opt/shagram/shagram/deploy/shagram"
|
||||
COMPOSE_FILE = "/opt/shagram/shagram/deploy/shagram/compose.yaml"
|
||||
COMPOSE_FILE = "${WORKSPACE}/deploy/shagram/compose.yaml"
|
||||
}
|
||||
|
||||
|
||||
stages {
|
||||
stage('Checkout') {
|
||||
steps {
|
||||
@@ -46,6 +47,10 @@ pipeline {
|
||||
}
|
||||
|
||||
stage('Deploy') {
|
||||
when {
|
||||
beforeAgent true
|
||||
branch 'main'
|
||||
}
|
||||
steps {
|
||||
sh '''
|
||||
set -eux
|
||||
@@ -57,5 +62,6 @@ EOF
|
||||
'''
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user