Update Jenkinsfile

parent bc8eb7d5
...@@ -7,7 +7,9 @@ node('devenv') { ...@@ -7,7 +7,9 @@ node('devenv') {
} }
stage('deploy') { stage('deploy') {
sh ''' sh '''
ln -s /var/lib/jenkins/workspace/training-cicd-mine_master/target/springboot-refapp-0.0.1-SNAPSHOT.jar /etc/init.d/springboot-refapp || true service springboot-refapp stop || true
rm -f /etc/init.d/springboot-refapp || true
ln -s /var/lib/jenkins/workspace/ravvaru_master/target/springboot-refapp-0.0.1-SNAPSHOT.jar /etc/init.d/springboot-refapp || true
service springboot-refapp stop service springboot-refapp stop
service springboot-refapp start service springboot-refapp start
''' '''
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment