Tryiing to fix Jenkins.

This commit is contained in:
emil28092005
2026-01-18 05:23:17 +03:00
parent cce78fa8b3
commit bfe848f335
Vendored
+7 -1
View File
@@ -9,9 +9,10 @@ pipeline {
environment { environment {
IMAGE_NAME = "shagram" IMAGE_NAME = "shagram"
DEPLOY_DIR = "/opt/shagram/shagram/deploy/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 { stages {
stage('Checkout') { stage('Checkout') {
steps { steps {
@@ -46,6 +47,10 @@ pipeline {
} }
stage('Deploy') { stage('Deploy') {
when {
beforeAgent true
branch 'main'
}
steps { steps {
sh ''' sh '''
set -eux set -eux
@@ -57,5 +62,6 @@ EOF
''' '''
} }
} }
} }
} }