From cae7d905700dac010c6775c510c1d9c1cf6ea050 Mon Sep 17 00:00:00 2001 From: "aussie.haryono" Date: Sat, 18 Aug 2018 21:33:44 +0700 Subject: [PATCH] Auto Deployment - replace scp with winscp --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index f0f8262dc5..d8969e6ef5 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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" } } }