Skip to content

Commit

Permalink
Update deploy-war-to-tomcat
Browse files Browse the repository at this point in the history
  • Loading branch information
javahometech authored Apr 19, 2018
1 parent e9d1fdf commit be17dcc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion deploy-war-to-tomcat
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ node{
sh "${mvnHome}/bin/mvn package"
}
stage('Deploy to Tomcat'){

sshagent(['tomcat-dev']) {
sh 'scp -o StrictHostKeyChecking=no target/*.war [email protected]:/tmp/'
sh 'scp -o StrictHostKeyChecking=no target/*.war [email protected]:/opt/tomcat8/webapps/'
}
}
stage('Email Notification'){
Expand Down

0 comments on commit be17dcc

Please sign in to comment.