From 0626498da675dfb85c47aa45036bf039209f1eb5 Mon Sep 17 00:00:00 2001 From: devopspushparaj <74173943+devopspushparaj@users.noreply.github.com> Date: Wed, 28 Jul 2021 06:24:46 +0530 Subject: [PATCH 01/13] Jenkins file created --- Jenkinsfile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 00000000..da457dac --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,20 @@ +pipeline { + agent any + tools { + maven 'Maven' + } + + stages { + stage('Intialize') { + steps { + sh ''' + echo "PATH = ${PATH}" + echo "M2_HOME = ${M2_HOME}" + ''' + } + } + stage('Build') { + sh 'mvn clean package' + } + } +} From 26e5b12027b67164a7c53e2dad262fa2feb978d5 Mon Sep 17 00:00:00 2001 From: devopspushparaj <74173943+devopspushparaj@users.noreply.github.com> Date: Wed, 28 Jul 2021 06:24:59 +0530 Subject: [PATCH 02/13] Jenkins file created --- Jenkinsfilenew | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Jenkinsfilenew diff --git a/Jenkinsfilenew b/Jenkinsfilenew new file mode 100644 index 00000000..da457dac --- /dev/null +++ b/Jenkinsfilenew @@ -0,0 +1,20 @@ +pipeline { + agent any + tools { + maven 'Maven' + } + + stages { + stage('Intialize') { + steps { + sh ''' + echo "PATH = ${PATH}" + echo "M2_HOME = ${M2_HOME}" + ''' + } + } + stage('Build') { + sh 'mvn clean package' + } + } +} From 1da5cdf1d47e4bbbe5b05a3d08587212b473d81e Mon Sep 17 00:00:00 2001 From: devopspushparaj <74173943+devopspushparaj@users.noreply.github.com> Date: Wed, 28 Jul 2021 06:26:25 +0530 Subject: [PATCH 03/13] Update Jenkinsfile --- Jenkinsfile | 3 --- 1 file changed, 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index da457dac..c2e55703 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -13,8 +13,5 @@ pipeline { ''' } } - stage('Build') { - sh 'mvn clean package' - } } } From ca4a51ccbb285708c3fa3dc348b5127f164e3eff Mon Sep 17 00:00:00 2001 From: devopspushparaj <74173943+devopspushparaj@users.noreply.github.com> Date: Wed, 28 Jul 2021 06:27:48 +0530 Subject: [PATCH 04/13] mvn --- Jenkinsfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index c2e55703..4d5ec1c8 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -13,5 +13,10 @@ pipeline { ''' } } + stage('Build') { + steps { + sh 'mvn clean package' + } + } } } From c8b88d84d44037514e5d57412bc41d02b2b84b30 Mon Sep 17 00:00:00 2001 From: devopspushparaj <74173943+devopspushparaj@users.noreply.github.com> Date: Wed, 28 Jul 2021 06:34:26 +0530 Subject: [PATCH 05/13] tomcat --- Jenkinsfile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 4d5ec1c8..5beadb5c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -18,5 +18,12 @@ pipeline { sh 'mvn clean package' } } + stage ('Deploy-To-Tomcat') { + steps { + sshagent(['tomcat']) { + sh 'scp -o StrictHostKeyChecking=no target/*.war ubuntu@15.206.125.132:/prod/apache-tomcat-8.5.39/webapps/webapp.war' + } + } + } } } From 6d937ed2b637beff32cd23de29e38d5e782ef221 Mon Sep 17 00:00:00 2001 From: devopspushparaj <74173943+devopspushparaj@users.noreply.github.com> Date: Wed, 28 Jul 2021 09:23:11 +0530 Subject: [PATCH 06/13] added steps in config --- Jenkinsfilenew | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Jenkinsfilenew b/Jenkinsfilenew index da457dac..9f2e64e5 100644 --- a/Jenkinsfilenew +++ b/Jenkinsfilenew @@ -14,7 +14,9 @@ pipeline { } } stage('Build') { + steps { sh 'mvn clean package' + } } } } From b88a10de2c990afd5aac13f77b2109605a605568 Mon Sep 17 00:00:00 2001 From: devopspushparaj <74173943+devopspushparaj@users.noreply.github.com> Date: Wed, 28 Jul 2021 09:30:23 +0530 Subject: [PATCH 07/13] corrected the IP address --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 5beadb5c..bd038823 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -21,7 +21,7 @@ pipeline { stage ('Deploy-To-Tomcat') { steps { sshagent(['tomcat']) { - sh 'scp -o StrictHostKeyChecking=no target/*.war ubuntu@15.206.125.132:/prod/apache-tomcat-8.5.39/webapps/webapp.war' + sh 'scp -o StrictHostKeyChecking=no /home/ubuntu/webapp/target/WebApp.war ubuntu@3.108.62.198:/prod/apache-tomcat-8.5.39/webapps/webapp.war' } } } From f995894a56ba4c25c6bb9a7fae1c0d767a547841 Mon Sep 17 00:00:00 2001 From: devopspushparaj <74173943+devopspushparaj@users.noreply.github.com> Date: Wed, 28 Jul 2021 09:36:05 +0530 Subject: [PATCH 08/13] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index bd038823..e1996156 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -21,7 +21,7 @@ pipeline { stage ('Deploy-To-Tomcat') { steps { sshagent(['tomcat']) { - sh 'scp -o StrictHostKeyChecking=no /home/ubuntu/webapp/target/WebApp.war ubuntu@3.108.62.198:/prod/apache-tomcat-8.5.39/webapps/webapp.war' + sh 'scp -o StrictHostKeyChecking=no /home/ubuntu/webapp/target/WebApp.war ubuntu@3.108.62.198:/home/ubuntu/prod/apache-tomcat-8.5.69/webapps/webapp.war' } } } From bc71e4d7061b43668efc952a42fdc41ac22be903 Mon Sep 17 00:00:00 2001 From: devopspushparaj <74173943+devopspushparaj@users.noreply.github.com> Date: Sat, 31 Jul 2021 08:14:44 +0530 Subject: [PATCH 09/13] updated --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index e1996156..993aee7a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -21,7 +21,7 @@ pipeline { stage ('Deploy-To-Tomcat') { steps { sshagent(['tomcat']) { - sh 'scp -o StrictHostKeyChecking=no /home/ubuntu/webapp/target/WebApp.war ubuntu@3.108.62.198:/home/ubuntu/prod/apache-tomcat-8.5.69/webapps/webapp.war' + sh 'scp -o StrictHostKeyChecking=no /home/ubuntu/webapp/target/WebApp.war ubuntu@13.233.87.209:/home/ubuntu/prod/apache-tomcat-8.5.69/webapps/webapp.war' } } } From 65387f3d10846feee6249f7127ead39cfa107b1d Mon Sep 17 00:00:00 2001 From: devopspushparaj <74173943+devopspushparaj@users.noreply.github.com> Date: Sat, 31 Jul 2021 08:19:45 +0530 Subject: [PATCH 10/13] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 993aee7a..60419609 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -21,7 +21,7 @@ pipeline { stage ('Deploy-To-Tomcat') { steps { sshagent(['tomcat']) { - sh 'scp -o StrictHostKeyChecking=no /home/ubuntu/webapp/target/WebApp.war ubuntu@13.233.87.209:/home/ubuntu/prod/apache-tomcat-8.5.69/webapps/webapp.war' + sh 'scp -o StrictHostKeyChecking=no target/WebApp.war ubuntu@13.233.87.209:/prod/apache-tomcat-8.5.69/webapps/webapp.war' } } } From f47c5c60a40866d04fe9158102bffe387b891f11 Mon Sep 17 00:00:00 2001 From: devopspushparaj <74173943+devopspushparaj@users.noreply.github.com> Date: Sat, 31 Jul 2021 08:42:06 +0530 Subject: [PATCH 11/13] updated the name --- src/main/webapp/index.jsp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/webapp/index.jsp b/src/main/webapp/index.jsp index d15d7c47..98c4827b 100644 --- a/src/main/webapp/index.jsp +++ b/src/main/webapp/index.jsp @@ -62,17 +62,17 @@

Heading

-

Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui.

+

Raj id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui.

View details »

Heading

-

Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui.

+

Raj id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui.

View details »

Heading

-

Donec sed odio dui. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Vestibulum id ligula porta felis euismod semper. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.

+

Raj sed odio dui. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Vestibulum id ligula porta felis euismod semper. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.

View details »

From cbff06bec9249257b33ae8679cc24b2d64df9405 Mon Sep 17 00:00:00 2001 From: devopspushparaj <74173943+devopspushparaj@users.noreply.github.com> Date: Sat, 31 Jul 2021 08:44:54 +0530 Subject: [PATCH 12/13] updated the correct path --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 60419609..316d0388 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -21,7 +21,7 @@ pipeline { stage ('Deploy-To-Tomcat') { steps { sshagent(['tomcat']) { - sh 'scp -o StrictHostKeyChecking=no target/WebApp.war ubuntu@13.233.87.209:/prod/apache-tomcat-8.5.69/webapps/webapp.war' + sh 'scp -o StrictHostKeyChecking=no target/WebApp.war ubuntu@13.233.87.209:/home/ubuntu/prod/apache-tomcat-8.5.69/webapps/webapp.war' } } } From 0d01d6522fed20e199960c98b5fee796e3b0799c Mon Sep 17 00:00:00 2001 From: Raj Polakala Date: Sat, 31 Jul 2021 09:22:25 +0530 Subject: [PATCH 13/13] Updated the new feature - Name chnage --- src/main/webapp/index.jsp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/webapp/index.jsp b/src/main/webapp/index.jsp index 98c4827b..dc995c22 100644 --- a/src/main/webapp/index.jsp +++ b/src/main/webapp/index.jsp @@ -62,17 +62,17 @@

Heading

-

Raj id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui.

+

Harsha id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui.

View details »

Heading

-

Raj id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui.

+

Harsha id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui.

View details »

Heading

-

Raj sed odio dui. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Vestibulum id ligula porta felis euismod semper. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.

+

Harsha sed odio dui. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Vestibulum id ligula porta felis euismod semper. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.

View details »