From 186fee7ff1e692a6f8d3f41fc689e15ad201a2fd Mon Sep 17 00:00:00 2001 From: saeid_01 Date: Fri, 29 Jan 2021 12:19:06 +0000 Subject: [PATCH] Update 'Jenkinsfile' --- Jenkinsfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 4c03cdf1..66f74ab0 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -8,18 +8,19 @@ pipeline { stages { stage('build') { steps { - sh ' - docker build -t $IMAGE_NAME:latest .' + sh 'docker build -t registry.willaspace.com/willaspace/$IMAGE_NAME:latest .' + sh 'cd /home/administrator/apps/$IMAGE_NAME/;sudo ./BuildDocker' } } stage('deploy') { steps { - dir(path: '/home/administrator/apps/cssd') + sh 'cd /home/administrator/apps/$IMAGE_NAME/ ; docker-compose up -d' } } } environment { - IMAGE_NAME = 'CSSD' + IMAGE_NAME = 'cssd' } } \ No newline at end of file