Landmark Technology,
From c716dda798037b03e24bc7481919f7ca7b358e1c Mon Sep 17 00:00:00 2001
From: mylandmarkpay <88941377+mylandmarkpay@users.noreply.github.com>
Date: Tue, 7 Sep 2021 19:59:53 -0400
Subject: [PATCH 07/25] Update home.jsp
---
src/main/webapp/jsps/home.jsp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/main/webapp/jsps/home.jsp b/src/main/webapp/jsps/home.jsp
index d291c364f..bd48f7e12 100644
--- a/src/main/webapp/jsps/home.jsp
+++ b/src/main/webapp/jsps/home.jsp
@@ -10,11 +10,11 @@
Landmark Technologies
- Welcome to Landmark Technologies.
- Landmark Technology is a an ideal online training platform for DevOps and Cloud Engineers.
+ Welcome to Landmark Technologies,
+ An ideal online training platform for DevOps and Cloud Engineers.
We also offer interview preparations and job assitance.
Class26 will run from October 2, 2021.
- The shout of the King is in our midst. His name is JESUS. HE IS OUR SUCCESS ACCESS KEY
+ The shout of the King Jesus is in our midst. HE IS OUR SUCCESS ACCESS KEY
From a20d44e38ab9a0089c4fd42bf689b8838d3afa06 Mon Sep 17 00:00:00 2001
From: mylandmarkpay <88941377+mylandmarkpay@users.noreply.github.com>
Date: Tue, 7 Sep 2021 20:13:31 -0400
Subject: [PATCH 08/25] Update Dockerfile
---
Dockerfile | 1 +
1 file changed, 1 insertion(+)
diff --git a/Dockerfile b/Dockerfile
index 74a00407b..514705e1e 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,3 +1,4 @@
FROM tomcat:8.0.20-jre8
+# Learning webhook
# Dummy text to test
COPY target/maven-web-application*.war /usr/local/tomcat/webapps/maven-web-application.war
From 283ee4ee08404f01fb4b535fb1d3c792e45e286b Mon Sep 17 00:00:00 2001
From: mylandmarkpay <88941377+mylandmarkpay@users.noreply.github.com>
Date: Tue, 7 Sep 2021 20:27:40 -0400
Subject: [PATCH 09/25] Update Dockerfile
---
Dockerfile | 1 +
1 file changed, 1 insertion(+)
diff --git a/Dockerfile b/Dockerfile
index 514705e1e..7c7044722 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,4 +1,5 @@
FROM tomcat:8.0.20-jre8
# Learning webhook
+# CI CD JOB
# Dummy text to test
COPY target/maven-web-application*.war /usr/local/tomcat/webapps/maven-web-application.war
From fad48632672650bc402b3e08781d46b0bdd883b9 Mon Sep 17 00:00:00 2001
From: mylandmarkpay <88941377+mylandmarkpay@users.noreply.github.com>
Date: Sat, 11 Sep 2021 12:18:15 -0400
Subject: [PATCH 10/25] Update home.jsp
---
src/main/webapp/jsps/home.jsp | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/main/webapp/jsps/home.jsp b/src/main/webapp/jsps/home.jsp
index bd48f7e12..b7d24edcc 100644
--- a/src/main/webapp/jsps/home.jsp
+++ b/src/main/webapp/jsps/home.jsp
@@ -9,10 +9,9 @@
-Landmark Technologies
- Welcome to Landmark Technologies,
+Welcome to Landmark Technologies
+
An ideal online training platform for DevOps and Cloud Engineers.
- We also offer interview preparations and job assitance.
Class26 will run from October 2, 2021.
The shout of the King Jesus is in our midst. HE IS OUR SUCCESS ACCESS KEY
From 66733414da163605b5ccbf2034bac90ba4329045 Mon Sep 17 00:00:00 2001
From: mylandmarkpay <88941377+mylandmarkpay@users.noreply.github.com>
Date: Sat, 11 Sep 2021 12:26:41 -0400
Subject: [PATCH 11/25] Update home.jsp
---
src/main/webapp/jsps/home.jsp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/webapp/jsps/home.jsp b/src/main/webapp/jsps/home.jsp
index b7d24edcc..2c76d20c5 100644
--- a/src/main/webapp/jsps/home.jsp
+++ b/src/main/webapp/jsps/home.jsp
@@ -10,7 +10,7 @@
Welcome to Landmark Technologies
-
+ Supporting Ebay black project
An ideal online training platform for DevOps and Cloud Engineers.
Class26 will run from October 2, 2021.
The shout of the King Jesus is in our midst. HE IS OUR SUCCESS ACCESS KEY
From a6f83e77aec7e5d709d6e1154937337fbbb3e331 Mon Sep 17 00:00:00 2001
From: mylandmarkpay <88941377+mylandmarkpay@users.noreply.github.com>
Date: Sat, 11 Sep 2021 12:40:07 -0400
Subject: [PATCH 12/25] Update home.jsp
---
src/main/webapp/jsps/home.jsp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/main/webapp/jsps/home.jsp b/src/main/webapp/jsps/home.jsp
index 2c76d20c5..7bd0e8618 100644
--- a/src/main/webapp/jsps/home.jsp
+++ b/src/main/webapp/jsps/home.jsp
@@ -9,9 +9,9 @@
-Welcome to Landmark Technologies
- Supporting Ebay black project
- An ideal online training platform for DevOps and Cloud Engineers.
+Welcome to Landmark Technologies.
+ We are supporting the Ebay Black Friday Project.
+ Landmark Technologies is a software development company.
Class26 will run from October 2, 2021.
The shout of the King Jesus is in our midst. HE IS OUR SUCCESS ACCESS KEY
From 678070974f6607d3dd0b4899f5818262873ffbf4 Mon Sep 17 00:00:00 2001
From: mylandmarkpay <88941377+mylandmarkpay@users.noreply.github.com>
Date: Sat, 11 Sep 2021 12:46:43 -0400
Subject: [PATCH 13/25] Create Jenkinsfile-ebay
---
Jenkinsfile-ebay | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
create mode 100644 Jenkinsfile-ebay
diff --git a/Jenkinsfile-ebay b/Jenkinsfile-ebay
new file mode 100644
index 000000000..f5f9ff25f
--- /dev/null
+++ b/Jenkinsfile-ebay
@@ -0,0 +1,34 @@
+node {
+ def mavenHome = tool name: 'maven3.8.2'
+ stage('1-Clone') {
+ git credentialsId: 'GitHUB-CREDENTIALS', url: 'https://github.com/Landmark-Technologies/maven-web-application'
+ }
+ stage('2-mavenBuild') {
+ sh "${mavenHome}/bin/mvn clean package"
+ }
+ stage('3-CodeQuality') {
+ sh "${mavenHome}/bin/mvn sonar:sonar"
+ }
+ stage('4-UploadArticats') {
+ sh "${mavenHome}/bin/mvn deploy"
+ }
+ stage('5-Deploy-UAT') {
+ deploy adapters: [tomcat9(credentialsId: 'deploy', path: '', url: 'http://54.204.83.221:8000/')], contextPath: null, war: 'target/*.war'
+ }
+ stage('6-EmailN') {
+ emailext body: '''Hello Everyone,
+
+Build from Ebay pipeline project.
+
+Landmark Tecxhnologies''', subject: 'Build status', to: 'developers'
+ }
+ stage('Approval'){
+ timeout(time:8, unit: 'HOURS' ) {
+ input message: 'Please verify and approve'
+ }
+
+ }
+ stage('prod-Deploy'){
+ deploy adapters: [tomcat9(credentialsId: 'deploy', path: '', url: 'http://54.204.83.221:8000/')], contextPath: null, war: 'target/*.war'
+ }
+}
From 5c04d92b64268aac34069762b305b03a3325967f Mon Sep 17 00:00:00 2001
From: mylandmarkpay <88941377+mylandmarkpay@users.noreply.github.com>
Date: Sat, 11 Sep 2021 13:01:40 -0400
Subject: [PATCH 14/25] Update Jenkinsfile-ebay
---
Jenkinsfile-ebay | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/Jenkinsfile-ebay b/Jenkinsfile-ebay
index f5f9ff25f..d4d2daf4a 100644
--- a/Jenkinsfile-ebay
+++ b/Jenkinsfile-ebay
@@ -6,12 +6,14 @@ node {
stage('2-mavenBuild') {
sh "${mavenHome}/bin/mvn clean package"
}
+ */
stage('3-CodeQuality') {
sh "${mavenHome}/bin/mvn sonar:sonar"
}
stage('4-UploadArticats') {
sh "${mavenHome}/bin/mvn deploy"
}
+
stage('5-Deploy-UAT') {
deploy adapters: [tomcat9(credentialsId: 'deploy', path: '', url: 'http://54.204.83.221:8000/')], contextPath: null, war: 'target/*.war'
}
@@ -31,4 +33,7 @@ Landmark Tecxhnologies''', subject: 'Build status', to: 'developers'
stage('prod-Deploy'){
deploy adapters: [tomcat9(credentialsId: 'deploy', path: '', url: 'http://54.204.83.221:8000/')], contextPath: null, war: 'target/*.war'
}
+ /*
+ */
+ /*
}
From bd52f9f57a3b213ad65ac88bb8813427d1e1741e Mon Sep 17 00:00:00 2001
From: mylandmarkpay <88941377+mylandmarkpay@users.noreply.github.com>
Date: Sat, 11 Sep 2021 13:02:57 -0400
Subject: [PATCH 15/25] Update Jenkinsfile-ebay
---
Jenkinsfile-ebay | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/Jenkinsfile-ebay b/Jenkinsfile-ebay
index d4d2daf4a..8c1344b1f 100644
--- a/Jenkinsfile-ebay
+++ b/Jenkinsfile-ebay
@@ -6,7 +6,7 @@ node {
stage('2-mavenBuild') {
sh "${mavenHome}/bin/mvn clean package"
}
- */
+ /*
stage('3-CodeQuality') {
sh "${mavenHome}/bin/mvn sonar:sonar"
}
@@ -33,7 +33,6 @@ Landmark Tecxhnologies''', subject: 'Build status', to: 'developers'
stage('prod-Deploy'){
deploy adapters: [tomcat9(credentialsId: 'deploy', path: '', url: 'http://54.204.83.221:8000/')], contextPath: null, war: 'target/*.war'
}
- /*
*/
- /*
+
}
From 441a65e30cbe096e53e335d650cbe3e2148afd73 Mon Sep 17 00:00:00 2001
From: mylandmarkpay <88941377+mylandmarkpay@users.noreply.github.com>
Date: Sat, 11 Sep 2021 13:05:02 -0400
Subject: [PATCH 16/25] Update Jenkinsfile-ebay
---
Jenkinsfile-ebay | 3 +++
1 file changed, 3 insertions(+)
diff --git a/Jenkinsfile-ebay b/Jenkinsfile-ebay
index 8c1344b1f..a818e5c66 100644
--- a/Jenkinsfile-ebay
+++ b/Jenkinsfile-ebay
@@ -34,5 +34,8 @@ Landmark Tecxhnologies''', subject: 'Build status', to: 'developers'
deploy adapters: [tomcat9(credentialsId: 'deploy', path: '', url: 'http://54.204.83.221:8000/')], contextPath: null, war: 'target/*.war'
}
*/
+
+ /*
+ */
}
From bb17c5dfb061a408b45f0603b4180ad0610c979a Mon Sep 17 00:00:00 2001
From: mylandmarkpay <88941377+mylandmarkpay@users.noreply.github.com>
Date: Sat, 18 Sep 2021 13:04:17 -0400
Subject: [PATCH 17/25] testing
---
.../running notes/LinuxRunningNotes25.yml | 189 ++++++++++++++++++
1 file changed, 189 insertions(+)
create mode 100644 src/main/webapp/test/running notes/LinuxRunningNotes25.yml
diff --git a/src/main/webapp/test/running notes/LinuxRunningNotes25.yml b/src/main/webapp/test/running notes/LinuxRunningNotes25.yml
new file mode 100644
index 000000000..3eef1b4cf
--- /dev/null
+++ b/src/main/webapp/test/running notes/LinuxRunningNotes25.yml
@@ -0,0 +1,189 @@
+Linux Commands 1 :
+=======================
+PayPal = Client
+========================
+Computers =
+Operating system - OS
+ 80% Linux OS
+ 20% Windows OS
+ Solaris OS
+ Mac-OS
+ ''
+ Ownership of data center
+ Rent computing services
+
+We are leveraging computing serviceS from AWS and GCP
+
+ Linus - 1991
+
+
+ Linux OS =
+
+ Is an Open source OS = Free + code
+
+ WINDOWS --> Microsoft
+ Solaris --> Sun System
+
+
+Linus was a student who converted a problem into a business
+
+ Solaris wasn't an open source = paid for
+
+ Create a free Account in AWS =
+
+ https://aws.amazon.com/
+
+CONNECTING TO LINUX SERVER IN AWS:
+ host:
+ PublicIP = 3.233.222.45
+ Access the server from external Networks
+ privateIP = 172.31.8.197
+ Access the server from internal Networks
+ VPN
+ authentication:
+ SSH-key = class25demo.pem = pem file
+ password =
+
+ users details:
+ userName = ec2-user
+ = default user
+
+ ssh-client Software :
+ mobaXterm or puTTY
+Networking:
+ ssh ec2-user@3.233.222.45 = pasword
+ ssh landmark@3.233.222.45
+ ssh -i class25demo.pem landmark@3.233.222.45
+ssh -i "class25demo.pem" ec2-user@ec2-3-233-222-45.compute-1.amazonaws.com
+
+Managing Files, Folders and sub Folders
+In Linux folders = Directories
+File structure in Linux :
+ /
+ = root (Main)
+ c: drive for Windows
+ /sbin /etc /tmp /lib /home /bin /opt
+
+home = users
+===========
+ - ec2-user
+ - simon
+ - landmark
+ - olu
+ - ade
+
+bin = binary files or commands
+=============================
+- cd = change Directory
+- ls = list files and Directory
+- cat = displays the content of a file
+- pwd = present working directory
+- whoami
+
+sbin = system bin
+=================
+- adduser simon
+- useradd landmark
+- passwd simon
+- init 0
+users with elevated priviledges
+What is the difference between bin and sbin in Linux?
+ sbin are binary flies only executable by users
+ with admin/elevated priviledges
+ bin files are executable by any user
+
+
+ CREATE FILES OR FOLDERS (Directory)
+ key.pem
+ test.txt
+ deploy.yml
+ hello.py
+ monitor.sh
+ ec2.tf
+ hello.java
+ pom.xml
+
+
+LINUX SERVER = default files and directories
+
+etc = configuration files
+========================
+ - /etc/passwd
+ - /etc/shadow
+ - /etc/ssh/sshd_config
+
+tmp - temporal file holder
+=========================
+
+opt = Install Softwares and Packages
+===
+ - maven
+ - tommcat
+
+lib =
+====
+
+proc
+=======
+- meminfo
+- cpuinfo
+
+========================
+ ls /bin
+ ls /sbin
+ ls /tmp
+ ls /opt
+ ls /var
+ ls /lib
+ ls /etc
+sudo is use to escalate or elevate priviledges
+Linux Basic Commands:
+=====================
+ mkdir = create directory
+ ls = list fil and directories
+ mkdir class25
+ mkdir devops
+ mkdir -v test
+ -v verbose
+ -p create both parent and child directories
+textmate
+mkdir -pv Devops/SDLC/Linux/Jenkins/Git/Maven/Nexus/
+
+ mkdir Devops/
+ mkdir Devops/SDLC/
+ mkdir Devops/SDLC/Linux/
+ mkdir Devops/SDLC/Linux/Jenkins/
+ mkdir Devops/SDLC/Linux/Jenkins/Git/
+ mkdir Devops/SDLC/Linux/Jenkins/Git/Maven/
+ mkdir Devops/SDLC/Linux/Jenkins/Git/Maven/Nexus/
+
+ tree
+ yum install tree
+
+Linux is case sensitive =
+ test / Test / TEST are different files in Linux
+
+ mkdir -p devops/Linux/Jenkins/Git/Maven/Nexus/
+
+ mkdir -v test/ebay
+
+ = tree cannot be found
+
+ = yum install tree -- permission denied
+
+ sudo yum install tree
+
+classes users:
+ Normal users
+ sudo adduser ade
+ sudo su - ade
+ Root / superuser / admin
+ system users
+
+rmdir it is use to delete empty directories
+
+mkdir use to create directories
+
+rm -r use to delete directories
+
+commands in Linux are in lower case
\ No newline at end of file
From 08df69a07fc51bd75f10c033b231c168ad99e2a2 Mon Sep 17 00:00:00 2001
From: mylandmarkpay <88941377+mylandmarkpay@users.noreply.github.com>
Date: Sat, 18 Sep 2021 13:05:12 -0400
Subject: [PATCH 18/25] Create paypal.groovy
---
.../webapp/test/running notes/paypal.groovy | 63 +++++++++++++++++++
1 file changed, 63 insertions(+)
create mode 100644 src/main/webapp/test/running notes/paypal.groovy
diff --git a/src/main/webapp/test/running notes/paypal.groovy b/src/main/webapp/test/running notes/paypal.groovy
new file mode 100644
index 000000000..661101c01
--- /dev/null
+++ b/src/main/webapp/test/running notes/paypal.groovy
@@ -0,0 +1,63 @@
+//Jenkins pipeline script
+//Groovy script
+node
+{
+def mavenHome = tool name: 'maven3.6.3'
+stage('1. CodeClone')
+{
+git credentialsId: 'Github_credentials', url: 'https://github.com/myLandmakTechnology/maven-web-app.git'
+}
+stage('2. Build')
+{
+sh "${mavenHome}/bin/mvn package -f boa.xml"
+}
+
+stage('3. CodeQuality')
+{
+sh "${mavenHome}/bin/mvn sonar:sonar"
+}
+stage('4.UploadNexus')
+{
+sh "${mavenHome}/bin/mvn deploy"
+}
+stage('5. Approval')
+{
+echo "Approved. Ready for deployment"
+}
+stage('6. DeployTomcat')
+{
+
+deploy adapters: [tomcat9(credentialsId: 'Tomcat-Credentials', path: '', url: 'http://54.163.156.108:8888/')], contextPath: null, war: 'target/*war'
+}
+stage('7. Notification')
+{
+emailextrecipients([developers()])
+}
+}
+
+stage('Deploy-prod'){
+ steps{
+ timeout(time:5, unit:'DAYS'){
+ input message: 'Approval for production'
+ }
+ }
+ steps{
+ deploy adapters: [tomcat9(credentialsId: 'Tomcat-Credentials', path: '', url: 'http://54.163.156.108:8888/')], contextPath: null, war: 'target/*war'
+
+ }
+ }
+}
+
+
+node {
+ stage('clone'){
+ steps{
+ timeout(time:5, unit:'DAYS'){
+ input message: 'Approval for clonning'
+ }
+ }
+ steps{
+ git credentialsId: 'GitHUB-CREDENTIALS', url: 'https://github.com/Landmark-Technologies/maven-web-application'
+ }
+ }
+}
From 60acfae4604708bde2883002bd6588d4a54bc9f5 Mon Sep 17 00:00:00 2001
From: mylandmarkpay <88941377+mylandmarkpay@users.noreply.github.com>
Date: Mon, 20 Sep 2021 21:14:34 -0400
Subject: [PATCH 19/25] Update Dockerfile
---
Dockerfile | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/Dockerfile b/Dockerfile
index 7c7044722..a28206703 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,5 +1,2 @@
FROM tomcat:8.0.20-jre8
-# Learning webhook
-# CI CD JOB
-# Dummy text to test
-COPY target/maven-web-application*.war /usr/local/tomcat/webapps/maven-web-application.war
+COPY target/*.war /usr/local/tomcat/webapps/maven-web-app.war
From da5bb92e21db18d35c469a62aaf68259321b6144 Mon Sep 17 00:00:00 2001
From: LandmarkTechnology <70292434+legah2045@users.noreply.github.com>
Date: Sat, 16 Sep 2023 19:39:01 -0400
Subject: [PATCH 20/25] Create Jenkinsfile-sep23
---
Jenkinsfile-sep23 | 56 +++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 56 insertions(+)
create mode 100644 Jenkinsfile-sep23
diff --git a/Jenkinsfile-sep23 b/Jenkinsfile-sep23
new file mode 100644
index 000000000..39420fcaf
--- /dev/null
+++ b/Jenkinsfile-sep23
@@ -0,0 +1,56 @@
+node{
+ def mavenHome = tool name: 'maven3.9.4'
+ stage('1.CloneCode'){
+ //Jenkins running on a Linux system
+ //sh "git clone https://github.com/LandmakTechnology/maven-web-application"
+ git "https://github.com/LandmakTechnology/maven-web-application"
+ //Jenkins running on a windows system
+ //bat "git clone https://github.com/LandmakTechnology/maven-web-application"
+ }
+ stage('2.mvnBuild'){
+ sh "${mavenHome}/bin/mvn clean package"
+ }
+
+ stage('3.CodeQuality'){
+ //sh "${mavenHome}/bin/mvn sonar:sonar"
+ //edit pom.xml propertiesTAG with SonarQube server details
+ }
+ stage('4.UploadArtifacts'){
+ //sh "${mavenHome}/bin/mvn deploy"
+ //edit pom.xml distributionManagement TAG with repository details
+ //edit settings.xml with nexus-user login credentials
+ }
+ stage('5.Deploy2UAT'){
+ //use deploy-to-container plugin via pipeline syntax
+ //deploy adapters: [tomcat9(credentialsId: 'tomcat-credentials', path: '', url: 'http://34.219.51.216:8177/')], contextPath: null, war: 'target/*war'
+ //Deploying [/var/lib/jenkins/workspace/tesla-app-pipeline/target/tesla.war]
+ }
+ stage('6.6ManualApproval'){
+ sh "echo 'Please review the application performance' "
+ //timeout(time:600, unit:'MINUTES') {
+ //input message: 'Application ready for deployment, Please review and approve'
+ }
+ }
+ stage('7.Deploy2Prod'){
+ sh "echo 'Deploy application to the customers/production' "
+ //deploy adapters: [tomcat9(credentialsId: 'tomcat-credentials', path: '', url: 'http://34.219.51.216:8177/')], contextPath: null, war: 'target/*war'
+
+ }
+ stage('8.APM'){
+ sh "echo 'monitoring and observation and alerting' "
+ sh "echo 'application performance Monitoring in progress' "
+ }
+
+ stage('9.emailNotification'){
+ sh "echo 'notify the team for unusual accurances' "
+ sh "echo 'notify the team if the applications are down' "
+ sh "echo 'notify the team if the latency is higher that expected' "
+ emailext body: '''Hi Team,
+
+The build and Deployment status for tesla-app follows.
+
+Regards,
+Landmark Technologies ''', recipientProviders: [buildUser(), contributor(), developers(), requestor()], subject: 'build and deployment status', to: 'mylandmarktech@gmail.com'
+
+ }
+}
From c08769c8672eb02d199ceb5a6d658e8ec35bd4c7 Mon Sep 17 00:00:00 2001
From: LandmarkTechnology <70292434+legah2045@users.noreply.github.com>
Date: Sat, 16 Sep 2023 19:47:31 -0400
Subject: [PATCH 21/25] Update Jenkinsfile-sep23
---
Jenkinsfile-sep23 | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/Jenkinsfile-sep23 b/Jenkinsfile-sep23
index 39420fcaf..9f41b3f33 100644
--- a/Jenkinsfile-sep23
+++ b/Jenkinsfile-sep23
@@ -10,7 +10,7 @@ node{
stage('2.mvnBuild'){
sh "${mavenHome}/bin/mvn clean package"
}
-
+/*
stage('3.CodeQuality'){
//sh "${mavenHome}/bin/mvn sonar:sonar"
//edit pom.xml propertiesTAG with SonarQube server details
@@ -53,4 +53,8 @@ Regards,
Landmark Technologies ''', recipientProviders: [buildUser(), contributor(), developers(), requestor()], subject: 'build and deployment status', to: 'mylandmarktech@gmail.com'
}
+
+/*
+//
+
}
From d8f943c7083851029b1e65eb1c57dbc59589c33d Mon Sep 17 00:00:00 2001
From: LandmarkTechnology <70292434+legah2045@users.noreply.github.com>
Date: Sat, 16 Sep 2023 19:50:59 -0400
Subject: [PATCH 22/25] Update Jenkinsfile-sep23
---
Jenkinsfile-sep23 | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Jenkinsfile-sep23 b/Jenkinsfile-sep23
index 9f41b3f33..221524901 100644
--- a/Jenkinsfile-sep23
+++ b/Jenkinsfile-sep23
@@ -10,7 +10,7 @@ node{
stage('2.mvnBuild'){
sh "${mavenHome}/bin/mvn clean package"
}
-/*
+/*
stage('3.CodeQuality'){
//sh "${mavenHome}/bin/mvn sonar:sonar"
//edit pom.xml propertiesTAG with SonarQube server details
@@ -54,7 +54,7 @@ Landmark Technologies ''', recipientProviders: [buildUser(), contributor(), deve
}
-/*
+*/
//
}
From eba409199485f81605e9739303451fef12fbad46 Mon Sep 17 00:00:00 2001
From: LandmarkTechnology <70292434+legah2045@users.noreply.github.com>
Date: Tue, 17 Sep 2024 19:26:14 -0400
Subject: [PATCH 23/25] Create Jenkinsfile_declarative_Sep24
---
Jenkinsfile_declarative_Sep24 | 59 +++++++++++++++++++++++++++++++++++
1 file changed, 59 insertions(+)
create mode 100644 Jenkinsfile_declarative_Sep24
diff --git a/Jenkinsfile_declarative_Sep24 b/Jenkinsfile_declarative_Sep24
new file mode 100644
index 000000000..6b250ff28
--- /dev/null
+++ b/Jenkinsfile_declarative_Sep24
@@ -0,0 +1,59 @@
+pipeline{
+ agent any
+ tools{
+ maven 'maven3.9.9'
+ }
+ stages{
+ stage('1GitClone'){
+ steps{
+ sh "echo cloning the latest app version"
+ git 'https://github.com/LandmakTechnology/maven-web-application'
+ }
+ }
+
+ stage('2build'){
+ steps{
+ sh "echo creating deployanle packages"
+ sh 'mvn clean package'
+ }
+ }
+ stage('3.CodeQuality'){
+ steps{
+ sh "mvn sonar:sonar"
+ sh "echo CodeQualityAnalysis completed"
+ }
+ }
+ stage('4.UploadArtifacts'){
+ steps{
+ sh "mvn deploy"
+ sh "echo artifacts uploaded successfully"
+ sh "echo I am now a Build and Release Engineer"
+ sh "echo Build and release completed"
+ }
+ }
+stage('5.Deploy2UAT'){
+ steps{
+ sh "echo Deployment is ready for the client review"
+ sh "echo using deploy to container plugin"
+ }
+ }
+ stage('6approval'){
+ steps{
+ sh "echo Deployment is ready for the client review"
+ sh "echo using deploy to container plugin"
+ echo "ready for inspection"
+ timeout(time:5, unit:'DAYS'){
+ input message: 'Application ready for deployment, Please review and approve'
+ }
+ }
+ }
+stage('7.Deploy2Prod'){
+ steps{
+ sh "echo application reviewed, approved and ready for the market"
+ emailext body: 'Hello Review and approve. ', subject: 'success', to: 'mylandmarktech@gmail.com'
+ }
+}
+ }
+
+}
+
From 9e92857c8345e37aeb1bbf85d6436c43abbd94ca Mon Sep 17 00:00:00 2001
From: LandmarkTechnology <70292434+legah2045@users.noreply.github.com>
Date: Tue, 17 Sep 2024 19:40:01 -0400
Subject: [PATCH 24/25] Update Jenkinsfile_declarative_Sep24
---
Jenkinsfile_declarative_Sep24 | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/Jenkinsfile_declarative_Sep24 b/Jenkinsfile_declarative_Sep24
index 6b250ff28..05298b00d 100644
--- a/Jenkinsfile_declarative_Sep24
+++ b/Jenkinsfile_declarative_Sep24
@@ -9,14 +9,14 @@ pipeline{
sh "echo cloning the latest app version"
git 'https://github.com/LandmakTechnology/maven-web-application'
}
- }
-
+ }
stage('2build'){
steps{
sh "echo creating deployanle packages"
sh 'mvn clean package'
}
}
+/*
stage('3.CodeQuality'){
steps{
sh "mvn sonar:sonar"
@@ -47,6 +47,7 @@ stage('5.Deploy2UAT'){
}
}
}
+*/
stage('7.Deploy2Prod'){
steps{
sh "echo application reviewed, approved and ready for the market"
From cfc33240c7ec77ebc53f5f58f7cc215a4efc4777 Mon Sep 17 00:00:00 2001
From: LandmarkTechnology <70292434+legah2045@users.noreply.github.com>
Date: Tue, 17 Sep 2024 19:41:23 -0400
Subject: [PATCH 25/25] Update Jenkinsfile_declarative_Sep24
---
Jenkinsfile_declarative_Sep24 | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Jenkinsfile_declarative_Sep24 b/Jenkinsfile_declarative_Sep24
index 05298b00d..b1f7d4369 100644
--- a/Jenkinsfile_declarative_Sep24
+++ b/Jenkinsfile_declarative_Sep24
@@ -4,13 +4,13 @@ pipeline{
maven 'maven3.9.9'
}
stages{
- stage('1GitClone'){
+ stage('1.GitClone'){
steps{
sh "echo cloning the latest app version"
git 'https://github.com/LandmakTechnology/maven-web-application'
}
}
- stage('2build'){
+ stage('2.mavenbuild'){
steps{
sh "echo creating deployanle packages"
sh 'mvn clean package'