Skip to content

Commit e7775fb

Browse files
authored
Update Jenkinsfile
1 parent 84409c2 commit e7775fb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Jenkinsfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ pipeline{
1414
}
1515
stage("deploy-dev"){
1616
steps{
17-
sshagent(['3.87.15.40']) {
17+
sshagentsshagent(['3.82.186.105']) {
1818
sh """
1919
scp -o StrictHostKeyChecking=no target/myweb.war
20-
ubuntu@3.87.15.40:/opt/tomcat/webapps/
21-
ssh ubuntu@3.87.15.40 /opt/tomcat/bin/shutdown.sh
22-
ssh ubuntu@3.87.15.40 /opt/tomcat/bin/startup.sh
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
2323
"""
2424
}
2525
}

0 commit comments

Comments
 (0)