Skip to content

Commit 0fefa99

Browse files
authored
Update Jenkins pipe line project
1 parent a7721d9 commit 0fefa99

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

Jenkins pipe line project

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,21 @@ pipeline {
1717
}
1818

1919
}
20+
stage ("deploy-dev") {
21+
steps {
22+
23+
sshagent(['1b6541c1-f57e-4889-a536-3dfa30e7f133']) {
24+
sh"""
25+
scp -o StrictHostKeyChecking=no target/pasad.war ubuntu@172.31.60.215:/home/ubuntu/apache-tomcat-8.5.70/webapps/
26+
ssh ubuntu@172.31.60.215 /home/ubuntu/apache-tomcat-8.5.70/bin/shutdown.sh
27+
ssh ubuntu@172.31.60.215 /home/ubuntu/apache-tomcat-8.5.70/bin/startup.sh
28+
"""
29+
}
30+
31+
32+
}
33+
34+
}
2035

2136

2237
}

0 commit comments

Comments
 (0)