Skip to content

Commit

Permalink
Auto Deployment - replace scp with winscp
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelaussie committed Aug 18, 2018
1 parent 8de408e commit cae7d90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ pipeline {
parallel{
stage('Deploy to Staging'){
steps{
bat "scp -i C:/Users/aussie.haryono/PycharmProjects/TomcatDemo.pem **/*.war ec2-user@${params.tomcat_dev}:/var/lib/tomcat7/webapps"
bat "winscp -i C:/Users/aussie.haryono/PycharmProjects/TomcatDemo.pem **/*.war ec2-user@${params.tomcat_dev}:/var/lib/tomcat7/webapps"
}
}

stage('Deploy to Prod'){
steps{
bat "scp -i C:/Users/aussie.haryono/PycharmProjects/TomcatDemo.pem **/*.war ec2-user@${params.tomcat_dev}:/var/lib/tomcat7/webapps"
bat "winscp -i C:/Users/aussie.haryono/PycharmProjects/TomcatDemo.pem **/*.war ec2-user@${params.tomcat_dev}:/var/lib/tomcat7/webapps"
}
}
}
Expand Down

0 comments on commit cae7d90

Please sign in to comment.