From bfe848f3359c5784b29dfdce97bed7f7dcd38c85 Mon Sep 17 00:00:00 2001 From: emil28092005 Date: Sun, 18 Jan 2026 05:23:17 +0300 Subject: [PATCH] Tryiing to fix Jenkins. --- Jenkinsfile | 36 +++++++++++++++++++++--------------- 1 file changed, 21 insertions(+), 15 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index d9bb9ce..23801d9 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -6,11 +6,12 @@ pipeline { timestamps() } - environment { - IMAGE_NAME = "shagram" - DEPLOY_DIR = "/opt/shagram/shagram/deploy/shagram" - COMPOSE_FILE = "/opt/shagram/shagram/deploy/shagram/compose.yaml" - } + environment { + IMAGE_NAME = "shagram" + DEPLOY_DIR = "/opt/shagram/shagram/deploy/shagram" + COMPOSE_FILE = "${WORKSPACE}/deploy/shagram/compose.yaml" + } + stages { stage('Checkout') { @@ -46,16 +47,21 @@ pipeline { } stage('Deploy') { - steps { - sh ''' - set -eux - mkdir -p "$DEPLOY_DIR" - cat > "$DEPLOY_DIR/.env" < "$DEPLOY_DIR/.env" <