Closed 105636046 closed 4 years ago
PLEASE RESOLVE AS POSSIBLE AS EARLY
deploying warfile to tomcat server through SSH agent by using scp command ..****
pipeline script
pipeline{ agent any stages{ stage('scm'){ steps{ git 'https://github.com/105636046/gol12.git' } } stage('build'){ steps{ sh 'mvn clean install' } } stage('deploy'){ steps{ sshagent(['new']) { sh 'scp -o StrictHostKeyChecking=no gameoflife-web/target/*.war ec2-user@IP:/var/lib/tomcat8/webapps' } } } } }
REsloved.......!
PLEASE RESOLVE AS POSSIBLE AS EARLY
deploying warfile to tomcat server through SSH agent by using scp command ..****
pipeline script
pipeline{ agent any stages{ stage('scm'){ steps{ git 'https://github.com/105636046/gol12.git' } } stage('build'){ steps{ sh 'mvn clean install' } } stage('deploy'){ steps{ sshagent(['new']) { sh 'scp -o StrictHostKeyChecking=no gameoflife-web/target/*.war ec2-user@IP:/var/lib/tomcat8/webapps' } } } } }