Skip to content

Commit

Permalink
Update Jenkins-sonar-nexus-tomcat
Browse files Browse the repository at this point in the history
  • Loading branch information
srinivas1987devops authored Jun 24, 2022
1 parent bab5f49 commit 5ee3d07
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Jenkins-sonar-nexus-tomcat
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ pipeline{
steps{
sshagent(['tomcat-new']) {
sh """
scp -o StrictHostKeyChecking=no target/myweb-8.2.0.war [email protected].45.145:/home/ec2-user/apache-tomcat-9.0.63/webapps/
scp -o StrictHostKeyChecking=no target/myweb-8.2.0.war [email protected].41.172:/home/ec2-user/apache-tomcat-9.0.64/webapps/

ssh [email protected].45.145 /home/ec2-user/apache-tomcat-9.0.63/bin/shutdown.sh
ssh [email protected].41.172 /home/ec2-user/apache-tomcat-9.0.64/bin/shutdown.sh

ssh [email protected].45.145 /home/ec2-user/apache-tomcat-9.0.63/bin/startup.sh
ssh [email protected].41.172 /home/ec2-user/apache-tomcat-9.0.64/bin/startup.sh

"""
}
Expand Down

0 comments on commit 5ee3d07

Please sign in to comment.