QT-DevOps / DevOpsIssues

This Repo will be used to demonstrate the Skills & Questions in DevOps
Apache License 2.0
27 stars 130 forks source link

failing to deploy war file to webapps using SSH agent #924

Closed 105636046 closed 4 years ago

105636046 commented 4 years ago

Screenshot (20)

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' } } } } }

105636046 commented 4 years ago

REsloved.......!