Commit 3dd0325f authored by Peter Farago's avatar Peter Farago

Update Jenkinsfile

parent c2d34f56
......@@ -7,11 +7,12 @@ node('devenv') {
}
stage('deploy') {
sh '''
service springboot-refapp stop || true
rm -f /etc/init.d/springboot-refapp || true
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
service springboot-refapp start
service springboot-refapp stop || true
rm -f /etc/init.d/springboot-refapp || true
'''
}
}
\ No newline at end of file
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