From f6967fae4f5b8bb1dabd6afe54b424b340a2c247 Mon Sep 17 00:00:00 2001 From: farid Date: Sat, 15 Jan 2022 08:42:20 +0330 Subject: [PATCH] fix: build staging in production --- Jenkinsfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 7de062f..4a1924f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -6,6 +6,9 @@ pipeline { } stages { stage('build') { + when { + branch 'master' + } steps { sh 'cd /home/administrator/apps/${IMAGE_NAME}/;docker build -t registry.willaspace.com/willaspace/${IMAGE_NAME}:latest .' sh 'cd /home/administrator/apps/${IMAGE_NAME}/;sudo ./BuildDocker'