Update 'Jenkinsfile'

This commit is contained in:
saeid_01
2021-01-29 12:19:06 +00:00
parent ffda8e47c7
commit 186fee7ff1
Vendored
+4 -3
View File
@@ -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'
}
}