From 97d504a2b7acfbf91724293fc1657b3de3eb0837 Mon Sep 17 00:00:00 2001
From: LandmarkTechnology <70292434+legah2045@users.noreply.github.com>
Date: Thu, 3 Jun 2021 19:23:00 -0400
Subject: [PATCH 01/25] Update Jenkinsfile
---
Jenkinsfile | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Jenkinsfile b/Jenkinsfile
index 18229ca..148cc27 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -9,7 +9,7 @@ node{
stage('mavenBuild') {
sh "${mavenHome}/bin/mvn clean package"
}
-
+/*
stage('CodeQuality') {
sh "${mavenHome}/bin/mvn sonar:sonar"
// execute the CodeQuality report with sonar
@@ -33,5 +33,5 @@ Landmark Technologies''', recipientProviders: [developers()], subject: 'status o
Landmark Technologies''', recipientProviders: [developers()], subject: 'status of build', to: 'mylandmarktech@gmail.com'
}
-
+ */
}
From 3a11da675249090da337b824c18d279b619257b2 Mon Sep 17 00:00:00 2001
From: LandmarkTechnology <70292434+legah2045@users.noreply.github.com>
Date: Thu, 3 Jun 2021 19:24:21 -0400
Subject: [PATCH 02/25] Update Jenkinsfile
---
Jenkinsfile | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Jenkinsfile b/Jenkinsfile
index 18229ca..148cc27 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -9,7 +9,7 @@ node{
stage('mavenBuild') {
sh "${mavenHome}/bin/mvn clean package"
}
-
+/*
stage('CodeQuality') {
sh "${mavenHome}/bin/mvn sonar:sonar"
// execute the CodeQuality report with sonar
@@ -33,5 +33,5 @@ Landmark Technologies''', recipientProviders: [developers()], subject: 'status o
Landmark Technologies''', recipientProviders: [developers()], subject: 'status of build', to: 'mylandmarktech@gmail.com'
}
-
+ */
}
From 39abd244055e13e72773cf56fa26e2de8bae86b5 Mon Sep 17 00:00:00 2001
From: LandmarkTechnology <70292434+legah2045@users.noreply.github.com>
Date: Thu, 3 Jun 2021 19:27:26 -0400
Subject: [PATCH 03/25] Update Jenkinsfile
---
Jenkinsfile | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/Jenkinsfile b/Jenkinsfile
index 148cc27..8ad34f3 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -9,7 +9,11 @@ node{
stage('mavenBuild') {
sh "${mavenHome}/bin/mvn clean package"
}
-/*
+// multi line comment in groovy script
+ /*
+ Multi branch jenkins job
+ */
+ /*
stage('CodeQuality') {
sh "${mavenHome}/bin/mvn sonar:sonar"
// execute the CodeQuality report with sonar
From 9036cca8bfdaf7450084ff586a661eb405da8673 Mon Sep 17 00:00:00 2001
From: donjevas <99785536+donjevas@users.noreply.github.com>
Date: Sun, 20 Mar 2022 21:06:19 -0500
Subject: [PATCH 04/25] Update pom.xml
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 48d6c67..961e1a5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -21,7 +21,7 @@
5.1.2.RELEASE
4.11
1.2.17
- http:3.238.135.186:9000/
+ http:172.31.84.150:9000/
admin
admin
UTF-8
From 169c207886971346244bc6c6058ab0f3b156135c Mon Sep 17 00:00:00 2001
From: donjevas <99785536+donjevas@users.noreply.github.com>
Date: Sun, 20 Mar 2022 21:45:16 -0500
Subject: [PATCH 05/25] Update pom.xml
---
pom.xml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pom.xml b/pom.xml
index 961e1a5..ad0f8e9 100644
--- a/pom.xml
+++ b/pom.xml
@@ -97,13 +97,13 @@
nexus
Landmark Technologies Releases Nexus Repository
- http://44.192.81.238:8888/mylandmarktech/repository/ebay-java-app-releases/
+ http://44.201.211.49:8081/repository/TD_release/
nexus
Landmark Technologies Snapshot Nexus Repository
- http://44.192.81.238:8888/mylandmarktech/repository/ebay-java-app-snapshot/
+ http://44.201.211.49:8081/repository/TD_snapshot/
From 8314fbc0776ffd07927714c0570960aeb34dfa7e Mon Sep 17 00:00:00 2001
From: donjevas <99785536+donjevas@users.noreply.github.com>
Date: Sun, 20 Mar 2022 22:12:51 -0500
Subject: [PATCH 06/25] Update pom.xml
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index ad0f8e9..7226af6 100644
--- a/pom.xml
+++ b/pom.xml
@@ -5,7 +5,7 @@
com.mt
maven-web-application
war
- 0.0.1-SNAPSHOT
+ 1.0.1-SNAPSHOT
maven-web-application
From 7ee7bb43ad02ed4dbf67c4d6fe9ee5330f6b7f9d Mon Sep 17 00:00:00 2001
From: donjevas <99785536+donjevas@users.noreply.github.com>
Date: Sun, 20 Mar 2022 23:35:57 -0500
Subject: [PATCH 07/25] Update pom.xml
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 7226af6..a7b8967 100644
--- a/pom.xml
+++ b/pom.xml
@@ -5,7 +5,7 @@
com.mt
maven-web-application
war
- 1.0.1-SNAPSHOT
+ 1.1.1-SNAPSHOT
maven-web-application
From 90855b8012a04827ad235dc25cad6e7ac69f525a Mon Sep 17 00:00:00 2001
From: donjevas <99785536+donjevas@users.noreply.github.com>
Date: Mon, 4 Apr 2022 16:11:23 -0500
Subject: [PATCH 08/25] Update pom.xml
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index a7b8967..ae2d9c5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -21,7 +21,7 @@
5.1.2.RELEASE
4.11
1.2.17
- http:172.31.84.150:9000/
+ http://52.201.224.74:9000//
admin
admin
UTF-8
From 8a2553a5a9a26949b6fe1b0059bb1c68a6855a60 Mon Sep 17 00:00:00 2001
From: donjevas <99785536+donjevas@users.noreply.github.com>
Date: Mon, 4 Apr 2022 16:16:57 -0500
Subject: [PATCH 09/25] Update pom.xml
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index ae2d9c5..628e0e5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -21,7 +21,7 @@
5.1.2.RELEASE
4.11
1.2.17
- http://52.201.224.74:9000//
+ http://172.31.82.116:9000//
admin
admin
UTF-8
From 221b4a4717fadb11b0caafb1a6634f6bd2e6a0d2 Mon Sep 17 00:00:00 2001
From: donjevas <99785536+donjevas@users.noreply.github.com>
Date: Mon, 4 Apr 2022 16:28:00 -0500
Subject: [PATCH 10/25] Update pom.xml
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 48d6c67..b08433d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -21,7 +21,7 @@
5.1.2.RELEASE
4.11
1.2.17
- http:3.238.135.186:9000/
+ http:172.31.82.116:9000/
admin
admin
UTF-8
From 8b7408d6f924a3d53c5a818a8896a0cf5175b163 Mon Sep 17 00:00:00 2001
From: donjevas <99785536+donjevas@users.noreply.github.com>
Date: Mon, 23 May 2022 19:48:38 -0500
Subject: [PATCH 11/25] Update pom.xml
sonar port change
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 628e0e5..5d0f2e9 100644
--- a/pom.xml
+++ b/pom.xml
@@ -21,7 +21,7 @@
5.1.2.RELEASE
4.11
1.2.17
- http://172.31.82.116:9000//
+ http://172.31.82.116:8000//
admin
admin
UTF-8
From d6b541acf69dc919072dcc83d745f25943566ad0 Mon Sep 17 00:00:00 2001
From: donjevas <99785536+donjevas@users.noreply.github.com>
Date: Mon, 23 May 2022 20:12:45 -0500
Subject: [PATCH 12/25] Update pom.xml
sonar port 9000 to 7000
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 48d6c67..440ba4c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -21,7 +21,7 @@
5.1.2.RELEASE
4.11
1.2.17
- http:3.238.135.186:9000/
+ http:3.238.135.186:7000/
admin
admin
UTF-8
From fd62a1c3a75884d9ac8ce7c5dc403fe83eb9e21b Mon Sep 17 00:00:00 2001
From: donjevas <99785536+donjevas@users.noreply.github.com>
Date: Mon, 23 May 2022 20:14:18 -0500
Subject: [PATCH 13/25] Update pom.xml
sonar port change 8000 to 7000
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index b056b6d..9fcb2e0 100644
--- a/pom.xml
+++ b/pom.xml
@@ -21,7 +21,7 @@
5.1.2.RELEASE
4.11
1.2.17
- http://172.31.82.116:8000//
+ http://172.31.82.116:7000//
admin
admin
From 009af2177d24f4b34be3faa76660c404844b9ff8 Mon Sep 17 00:00:00 2001
From: donjevas <99785536+donjevas@users.noreply.github.com>
Date: Mon, 23 May 2022 20:15:24 -0500
Subject: [PATCH 14/25] Update pom.xml
sonar port change from 7000 to 6000
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 440ba4c..3332c35 100644
--- a/pom.xml
+++ b/pom.xml
@@ -21,7 +21,7 @@
5.1.2.RELEASE
4.11
1.2.17
- http:3.238.135.186:7000/
+ http:3.238.135.186:6000/
admin
admin
UTF-8
From bf10660074bbf51ee5e7d1617fd367ec4e538b2d Mon Sep 17 00:00:00 2001
From: donjevas <99785536+donjevas@users.noreply.github.com>
Date: Fri, 3 Jun 2022 01:18:56 -0500
Subject: [PATCH 15/25] Create tomcat.yml
---
tomcat.yml | 4 ++++
1 file changed, 4 insertions(+)
create mode 100644 tomcat.yml
diff --git a/tomcat.yml b/tomcat.yml
new file mode 100644
index 0000000..67ca702
--- /dev/null
+++ b/tomcat.yml
@@ -0,0 +1,4 @@
+ - name: Deploy to tomcat
+ copy:
+ src: index.html
+ dest: /var/www/html/
From 52e491030678927aed6720df3488ae9db081e397 Mon Sep 17 00:00:00 2001
From: donjevas <99785536+donjevas@users.noreply.github.com>
Date: Fri, 3 Jun 2022 01:21:34 -0500
Subject: [PATCH 16/25] Create hosts
---
hosts | 4 ++++
1 file changed, 4 insertions(+)
create mode 100644 hosts
diff --git a/hosts b/hosts
new file mode 100644
index 0000000..8ca44bf
--- /dev/null
+++ b/hosts
@@ -0,0 +1,4 @@
+[tomcat]
+172.31.84.189
+172.31.20.192
+172.31.92.145
From 594bc70674c25c96f88c681c5e92bac3bac821bb Mon Sep 17 00:00:00 2001
From: donjevas <99785536+donjevas@users.noreply.github.com>
Date: Fri, 3 Jun 2022 01:38:48 -0500
Subject: [PATCH 17/25] Update tomcat.yml
---
tomcat.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tomcat.yml b/tomcat.yml
index 67ca702..833bac2 100644
--- a/tomcat.yml
+++ b/tomcat.yml
@@ -1,4 +1,4 @@
- name: Deploy to tomcat
copy:
- src: index.html
- dest: /var/www/html/
+ src: /var/lib/jenkins/workspace/jen-ans-tom/target/maven-web-app.war
+ dest: /opt/tomcat9/webapp/
From 42917456f3e29c10b43228f7dbf10be5b90f9174 Mon Sep 17 00:00:00 2001
From: donjevas <99785536+donjevas@users.noreply.github.com>
Date: Fri, 3 Jun 2022 01:44:03 -0500
Subject: [PATCH 18/25] Update tomcat.yml
---
tomcat.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tomcat.yml b/tomcat.yml
index 833bac2..ef1341f 100644
--- a/tomcat.yml
+++ b/tomcat.yml
@@ -1,4 +1,4 @@
- name: Deploy to tomcat
copy:
- src: /var/lib/jenkins/workspace/jen-ans-tom/target/maven-web-app.war
+ src: /target/maven-web-app.war
dest: /opt/tomcat9/webapp/
From 607e9265901886a5605bc0d389e8699e65933544 Mon Sep 17 00:00:00 2001
From: donjevas <99785536+donjevas@users.noreply.github.com>
Date: Fri, 3 Jun 2022 01:51:44 -0500
Subject: [PATCH 19/25] Update tomcat.yml
---
tomcat.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tomcat.yml b/tomcat.yml
index ef1341f..833bac2 100644
--- a/tomcat.yml
+++ b/tomcat.yml
@@ -1,4 +1,4 @@
- name: Deploy to tomcat
copy:
- src: /target/maven-web-app.war
+ src: /var/lib/jenkins/workspace/jen-ans-tom/target/maven-web-app.war
dest: /opt/tomcat9/webapp/
From b76f79afe86f54e34386e43c06988e6f98fee0fc Mon Sep 17 00:00:00 2001
From: donjevas <99785536+donjevas@users.noreply.github.com>
Date: Fri, 3 Jun 2022 02:08:21 -0500
Subject: [PATCH 20/25] Update tomcat.yml
---
tomcat.yml | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/tomcat.yml b/tomcat.yml
index 833bac2..0c90cc7 100644
--- a/tomcat.yml
+++ b/tomcat.yml
@@ -1,4 +1,8 @@
- - name: Deploy to tomcat
+---
+hosts: appservers
+remote_user: ec2-user
+become: yes
+- name: Deploy to tomcat
copy:
src: /var/lib/jenkins/workspace/jen-ans-tom/target/maven-web-app.war
dest: /opt/tomcat9/webapp/
From 709f9b487adc13a11771fab911e551048fd68aa9 Mon Sep 17 00:00:00 2001
From: donjevas <99785536+donjevas@users.noreply.github.com>
Date: Fri, 3 Jun 2022 02:09:27 -0500
Subject: [PATCH 21/25] Update tomcat.yml
---
tomcat.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tomcat.yml b/tomcat.yml
index 0c90cc7..ee8e11f 100644
--- a/tomcat.yml
+++ b/tomcat.yml
@@ -1,7 +1,7 @@
---
-hosts: appservers
+hosts: tomcat
remote_user: ec2-user
-become: yes
+become: true
- name: Deploy to tomcat
copy:
src: /var/lib/jenkins/workspace/jen-ans-tom/target/maven-web-app.war
From 3351079c3efef04f25d5d8834954a2bb7cfb9b37 Mon Sep 17 00:00:00 2001
From: donjevas <99785536+donjevas@users.noreply.github.com>
Date: Fri, 3 Jun 2022 02:22:56 -0500
Subject: [PATCH 22/25] Update tomcat.yml
---
tomcat.yml | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/tomcat.yml b/tomcat.yml
index ee8e11f..8e4d860 100644
--- a/tomcat.yml
+++ b/tomcat.yml
@@ -1,8 +1,5 @@
---
hosts: tomcat
-remote_user: ec2-user
-become: true
-- name: Deploy to tomcat
- copy:
- src: /var/lib/jenkins/workspace/jen-ans-tom/target/maven-web-app.war
- dest: /opt/tomcat9/webapp/
+task:
+ - name: copy artifact to tomcat server
+ copy: src=/var/lib/jenkins/workspace/jen-ans-tom/target/*.war dest=dest: /opt/tomcat9/webapps/
From e45632ba7397c95a77bc31ecb0b969e326fbfc8a Mon Sep 17 00:00:00 2001
From: donjevas <99785536+donjevas@users.noreply.github.com>
Date: Thu, 1 Dec 2022 18:48:34 -0600
Subject: [PATCH 23/25] Update hosts
---
hosts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hosts b/hosts
index 8ca44bf..264f4b0 100644
--- a/hosts
+++ b/hosts
@@ -1,4 +1,4 @@
[tomcat]
-172.31.84.189
+172.31.84.188
172.31.20.192
172.31.92.145
From ecfb74a8d65438aa865c65c4759c9ec50dcdd815 Mon Sep 17 00:00:00 2001
From: donjevas <99785536+donjevas@users.noreply.github.com>
Date: Thu, 1 Dec 2022 18:50:50 -0600
Subject: [PATCH 24/25] Update hosts
---
hosts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hosts b/hosts
index 264f4b0..8ca44bf 100644
--- a/hosts
+++ b/hosts
@@ -1,4 +1,4 @@
[tomcat]
-172.31.84.188
+172.31.84.189
172.31.20.192
172.31.92.145
From 52cd2714d21252b3e4c6c25042e27ec3a7d0ab4d Mon Sep 17 00:00:00 2001
From: donjevas <99785536+donjevas@users.noreply.github.com>
Date: Fri, 15 Dec 2023 16:07:22 -0600
Subject: [PATCH 25/25] Update hosts ip
---
hosts | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/hosts b/hosts
index 8ca44bf..0509e9a 100644
--- a/hosts
+++ b/hosts
@@ -1,4 +1,2 @@
[tomcat]
-172.31.84.189
-172.31.20.192
-172.31.92.145
+9.9.23.9.234