File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -136,15 +136,14 @@ if (publish_branches.contains(env.BRANCH_NAME)) {
136136if (deploy_branches. contains(env. BRANCH_NAME )) {
137137 stage(' Deploy build to dev server' ){
138138 node(' dev-server' ) {
139- dir(' /home/centos/devicehive-docker/rdbms-image' ){
140- sh '''
141- echo "$(date): Deploying build #${BUILD_NUMBER} from ${BRANCH_NAME} branch..." > ./jenkins-cd.timestamp
142- sed -i -e "s/DH_TAG=.*/DH_TAG=${BRANCH_NAME}/g" .env
143- sudo docker-compose pull
144- sudo docker-compose up -d
145- echo "$(date): Successfully deployed build #${BUILD_NUMBER} from ${BRANCH_NAME} branch" > ./jenkins-cd.timestamp
146- '''
147- }
139+ sh '''
140+ cd ~/devicehive-docker/rdbms-image
141+ echo "$(date): Deploying build #${BUILD_NUMBER} from ${BRANCH_NAME} branch..." > ./jenkins.timestamp
142+ sed -i -e "s/DH_TAG=.*/DH_TAG=${BRANCH_NAME}/g" .env
143+ sudo docker-compose pull
144+ sudo docker-compose up -d
145+ echo "$(date): Successfully deployed build #${BUILD_NUMBER} from ${BRANCH_NAME} branch" > ./jenkins.timestamp
146+ '''
148147 }
149148 }
150149}
You can’t perform that action at this time.
0 commit comments