We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fe3f762 commit 4a2841dCopy full SHA for 4a2841d
jenkins Jenkinsfilejenkins renamed to Jenkinsfile
@@ -14,12 +14,13 @@ pipeline{
14
}
15
stage("deploy-dev"){
16
steps{
17
- sshagent(['tomcat-dev1']) {
+ sshagent(['3.87.15.40']) {
18
+ // some block
19
sh """
20
scp -o StrictHostKeyChecking=no target/myweb.war
- ubuntu@yourip:/opt/tomcat/webapps/
21
- ssh ubuntu@yourip /opt/tomcat/bin/shutdown.sh
22
- ssh ubuntu@yourip /opt/tomcat/bin/startup.sh
+ ubuntu@3.87.15.40:/opt/tomcat/webapps/
+ ssh ubuntu@3.87.15.40 /opt/tomcat/bin/shutdown.sh
23
+ ssh ubuntu@3.87.15.40 /opt/tomcat/bin/startup.sh
24
"""
25
26
0 commit comments