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