Skip to content

Commit 52b2332

Browse files
authored
Update Jenkinsfile
1 parent c109759 commit 52b2332

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Jenkinsfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,13 @@ pipeline{
99
stage("Maven Build"){
1010
steps{
1111
sh "/opt/apache-maven-3.8.3/bin/mvn package"
12-
sh "mv target/*.war"
1312
}
1413
}
1514
stage("deploy-dev"){
1615
steps{
1716
sshagentsshagent(['3.82.186.105']) {
1817
sh """
19-
scp -o StrictHostKeyChecking=no target/myweb.war
18+
scp -o StrictHostKeyChecking=no target/*.war
2019
ubuntu@3.82.186.105:/opt/tomcat/webapps/
2120
ssh ubuntu@3.82.186.105 /opt/tomcat/bin/shutdown.sh
2221
ssh ubuntu@3.82.186.105 /opt/tomcat/bin/startup.sh

0 commit comments

Comments
 (0)