Skip to content
8 changes: 4 additions & 4 deletions Jenkins-Declarative-Git
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ pipeline{
stages{
stage("Git Checkout"){
steps{
git credentialsId: 'github', url: 'https://github.com/javahometech/myweb'
git credentialsId: 'github', url: 'https://github.com/Josetim/myweb.git'
}
}
stage("Maven Build"){
Expand All @@ -22,11 +22,11 @@ pipeline{
steps{
sshagent(['tomcat-new']) {
sh """
scp -o StrictHostKeyChecking=no target/myweb.war [email protected]:/opt/tomcat8/webapps/
scp -o StrictHostKeyChecking=no target/myweb.war [email protected]:/home/ubuntu/apache-tomcat-9.0.83/webapps/

ssh [email protected] /opt/tomcat8/bin/shutdown.sh
ssh [email protected] /home/ubuntu/apache-tomcat-9.0.83/webapps/bin/shutdown.sh

ssh [email protected] /opt/tomcat8/bin/startup.sh
ssh [email protected] /home/ubuntu/apache-tomcat-9.0.83/webapps/bin/startup.sh

"""
}
Expand Down
5 changes: 3 additions & 2 deletions src/main/webapp/index.jsp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<html>
<body>
<h1 style="color: red; font-size: 40px;" align="center"> JavaHome App 2020 Weekend</h1>
</body>
<h1 style="color: green; font-size: 40px;" align="center"> Hello Everyone My Birthday Is Tomorrow!!!!</h1>
<h2 style="color: blue; font-size: 38px;" align="center"> Good Morning!!!</h2>
<h3 style="color: red; font-size: 36px;" align="center"> Good Morning Bro Selim!!!</h3></body>
</html>