Skip to content

Commit

Permalink
Update Jenkinsfile
Browse files Browse the repository at this point in the history
  • Loading branch information
javahometech authored Feb 25, 2022
1 parent c5e559f commit c7b91cd
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@Library("app-lib") _
pipeline {
agent any

Expand All @@ -18,12 +19,7 @@ pipeline {
}
stage('Deploy to Tomcat') {
steps {
sshagent(['tomcat-dev']) {
// copy war file to tomcat server
sh "scp -o StrictHostKeyChecking=no target/*.war [email protected]:/opt/tomcat8/webapps/app.war"
sh "ssh [email protected] /opt/tomcat8/bin/shutdown.sh"
sh "ssh [email protected] /opt/tomcat8/bin/startup.sh"
}
tomcatDeploy(["172.31.13.38","172.31.13.38","172.31.13.38"],"ec2-user","tomcat-dev")
}
}
}
Expand Down

0 comments on commit c7b91cd

Please sign in to comment.