diff --git a/JenkinsFile b/JenkinsFile deleted file mode 100644 index 8b137891..00000000 --- a/JenkinsFile +++ /dev/null @@ -1 +0,0 @@ - diff --git a/Jenkinsfile b/Jenkinsfile index f2a36ac5..91c2a346 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -61,7 +61,7 @@ pipeline { stage ('Deploy-To-Tomcat') { steps { sshagent(['tomcat']) { - sh 'scp -o StrictHostKeyChecking=no /home/jenkins/.jenkins/workspace/DevSecops-Demo/target/WebApp.war user1@10.210.12.93:/opt/apache-tomcat-9.0.110/webapps/webapp.war' + sh 'scp -o StrictHostKeyChecking=no ${WORKSPACE}/target/WebApp.war user1@10.210.12.93:/opt/apache-tomcat-9.0.110/webapps/webapp.war' } } }