Skip to content

Commit

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

}
}

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

0 comments on commit 38ff1fd

Please sign in to comment.