We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c109759 commit 52b2332Copy full SHA for 52b2332
1 file changed
Jenkinsfile
@@ -9,14 +9,13 @@ pipeline{
9
stage("Maven Build"){
10
steps{
11
sh "/opt/apache-maven-3.8.3/bin/mvn package"
12
- sh "mv target/*.war"
13
}
14
15
stage("deploy-dev"){
16
17
sshagentsshagent(['3.82.186.105']) {
18
sh """
19
- scp -o StrictHostKeyChecking=no target/myweb.war
+ scp -o StrictHostKeyChecking=no target/*.war
20
ubuntu@3.82.186.105:/opt/tomcat/webapps/
21
ssh ubuntu@3.82.186.105 /opt/tomcat/bin/shutdown.sh
22
ssh ubuntu@3.82.186.105 /opt/tomcat/bin/startup.sh
0 commit comments