Skip to content

Commit 4a2841d

Browse files
authored
Update and rename jenkins to Jenkinsfile
1 parent fe3f762 commit 4a2841d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

jenkins renamed to Jenkinsfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,13 @@ pipeline{
1414
}
1515
stage("deploy-dev"){
1616
steps{
17-
sshagent(['tomcat-dev1']) {
17+
sshagent(['3.87.15.40']) {
18+
// some block
1819
sh """
1920
scp -o StrictHostKeyChecking=no target/myweb.war
20-
ubuntu@yourip:/opt/tomcat/webapps/
21-
ssh ubuntu@yourip /opt/tomcat/bin/shutdown.sh
22-
ssh ubuntu@yourip /opt/tomcat/bin/startup.sh
21+
ubuntu@3.87.15.40:/opt/tomcat/webapps/
22+
ssh ubuntu@3.87.15.40 /opt/tomcat/bin/shutdown.sh
23+
ssh ubuntu@3.87.15.40 /opt/tomcat/bin/startup.sh
2324
"""
2425
}
2526
}

0 commit comments

Comments
 (0)