Update Jenkinsfile
Some checks failed
eCommerce-backend/pipeline/head There was a failure building this commit

This commit is contained in:
2026-02-20 15:15:34 +00:00
parent 4c5b14bc6c
commit 19ede124a6

7
Jenkinsfile vendored
View File

@@ -19,10 +19,9 @@ pipeline {
stage('Build Image') { stage('Build Image') {
steps { steps {
script { script {
// Build the Docker image locally // DOCKER_BUILDKIT=0 forces the use of the legacy builder
sh "docker build -t ${IMAGE_TAG} ." sh "DOCKER_BUILDKIT=0 docker build -t ${IMAGE_TAG} ."
// Also tag as latest for easy local reference sh "DOCKER_BUILDKIT=0 docker tag ${IMAGE_TAG} ${APP_NAME}:latest"
sh "docker tag ${IMAGE_TAG} ${APP_NAME}:latest"
} }
} }
} }