Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch 9 #34

Open
wants to merge 132 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
132 commits
Select commit Hold shift + click to select a range
b65a056
Update home.jsp
legah2045 Nov 7, 2020
7591b4a
Update pom.xml
legah2045 Nov 7, 2020
1026858
Delete mithunlogo.jpg
legah2045 Nov 8, 2020
b943bfb
Add files via upload
legah2045 Nov 8, 2020
fbf8cf6
Update home.jsp
legah2045 Nov 8, 2020
e523915
Add files via upload
legah2045 May 16, 2021
0b8290d
Add files via upload
legah2045 May 16, 2021
e5330b1
Add files via upload
legah2045 May 16, 2021
f91d43c
Update home.jsp
legah2045 May 16, 2021
aa9068d
Update home.jsp
legah2045 May 16, 2021
02c9533
Update pom.xml
legah2045 May 23, 2021
d46f2b4
Update pom.xml
legah2045 May 23, 2021
294da5b
Update Jenkinsfile
legah2045 Aug 22, 2021
7934dc5
Update pom.xml
mylandmarkpay Sep 4, 2021
9276493
Update pom.xml
mylandmarkpay Sep 4, 2021
f2274bc
Update pom.xml
mylandmarkpay Sep 4, 2021
8c8e3a8
Update pom.xml
mylandmarkpay Sep 6, 2021
3ccb82b
Update home.jsp
mylandmarkpay Sep 7, 2021
c716dda
Update home.jsp
mylandmarkpay Sep 7, 2021
a20d44e
Update Dockerfile
mylandmarkpay Sep 8, 2021
283ee4e
Update Dockerfile
mylandmarkpay Sep 8, 2021
fad4863
Update home.jsp
mylandmarkpay Sep 11, 2021
6673341
Update home.jsp
mylandmarkpay Sep 11, 2021
a6f83e7
Update home.jsp
mylandmarkpay Sep 11, 2021
6780709
Create Jenkinsfile-ebay
mylandmarkpay Sep 11, 2021
5c04d92
Update Jenkinsfile-ebay
mylandmarkpay Sep 11, 2021
bd52f9f
Update Jenkinsfile-ebay
mylandmarkpay Sep 11, 2021
441a65e
Update Jenkinsfile-ebay
mylandmarkpay Sep 11, 2021
bb17c5d
testing
mylandmarkpay Sep 18, 2021
08df69a
Create paypal.groovy
mylandmarkpay Sep 18, 2021
60acfae
Update Dockerfile
mylandmarkpay Sep 21, 2021
cf81212
Delete src/main directory
legah2045 Sep 24, 2021
46ac861
Add files via upload
legah2045 Sep 24, 2021
0a0b140
Add files via upload
legah2045 Sep 24, 2021
50e5c9e
Update pom.xml
legah2045 Jan 14, 2022
7ad5e55
Update pom.xml
legah2045 Jan 14, 2022
052edc7
Update pom.xml
legah2045 Jan 14, 2022
975a103
Update pom.xml
legah2045 Jan 15, 2022
590a439
Update Dockerfile
legah2045 Jan 15, 2022
5d66a2c
Create Jenkinsfile_docker
legah2045 Jan 15, 2022
a437caa
Update pom.xml
legah2045 Jun 17, 2022
266e702
Update pom.xml
legah2045 Jun 17, 2022
051ae03
Update pom.xml
legah2045 Jun 17, 2022
f8604cc
Update pom.xml
legah2045 Jun 18, 2022
5a61d6b
Update pom.xml
legah2045 Jun 18, 2022
731a5ce
Update pom.xml
legah2045 Jun 18, 2022
86959b2
Update home.jsp
legah2045 Jun 18, 2022
8005d73
Update home.jsp
legah2045 Jun 18, 2022
9be85d5
Update home.jsp
legah2045 Jun 18, 2022
f607df0
Update pom.xml
legah2045 Jun 24, 2022
e806297
Create Jenkinsfile_paypal28
legah2045 Jun 25, 2022
fddde7e
Update pom.xml
legah2045 Sep 20, 2022
a5656a8
Update pom.xml
legah2045 Sep 20, 2022
2b35e4c
Update pom.xml
legah2045 Sep 20, 2022
51a94e3
Update pom.xml
legah2045 Sep 20, 2022
682fa30
Update home.jsp
legah2045 Sep 20, 2022
c35faa5
Create Jenkins_tesla
legah2045 Sep 20, 2022
3baa3ac
Rename Jenkins_tesla to Jenkinsfile_tesla
legah2045 Sep 20, 2022
441a79a
Update Jenkinsfile_tesla
legah2045 Sep 20, 2022
1993c9a
Create Jenkinsfile_sep22
legah2045 Sep 20, 2022
29522e9
Create Jenkinsfiles-declarative29
legah2045 Sep 21, 2022
266291e
Rename Jenkinsfile to Jenkinsfile11
legah2045 Sep 21, 2022
45d8934
Create Jenkinsfile
legah2045 Sep 21, 2022
ec2bc1f
Update Jenkinsfile
legah2045 Sep 21, 2022
f42cc0c
Delete mithunlogo.jpg
legah2045 Dec 3, 2022
b0a4a4b
Update Dockerfile
legah2045 Dec 13, 2022
5635dac
Update home.jsp
legah2045 Dec 13, 2022
de0a1ea
Create deploy-k8s.yml
legah2045 Dec 13, 2022
002a009
Update pom.xml
legah2045 Dec 18, 2022
5b7db73
Update pom.xml
legah2045 Dec 18, 2022
7dca4ac
Update pom.xml
legah2045 Dec 18, 2022
de33288
Update pom.xml
legah2045 Dec 18, 2022
9bade4a
Update home.jsp
legah2045 Dec 18, 2022
26d1419
Update home.jsp
legah2045 Dec 18, 2022
6760d21
Update home.jsp
legah2045 Dec 18, 2022
dabe929
Update pom.xml
legah2045 Mar 22, 2023
192cc51
Update pom.xml
legah2045 Mar 22, 2023
5f25331
Update home.jsp
legah2045 Mar 29, 2023
ba8973b
Update pom.xml
legah2045 Mar 29, 2023
f3c843b
Create Jenkinsfile_March2023
legah2045 Mar 29, 2023
6af2bd5
Update Jenkinsfile_March2023
legah2045 Mar 29, 2023
3b3b3f8
Update home.jsp
legah2045 Apr 1, 2023
89d83f3
Update home.jsp
legah2045 Apr 1, 2023
d550c92
Create Jenkinsfile_declarative042023
legah2045 Apr 1, 2023
7622e62
Update pom.xml
legah2045 Jun 11, 2023
158a060
Update Dockerfile
legah2045 Jun 16, 2023
14eb288
Update Dockerfile
legah2045 Jun 16, 2023
6d230bd
Update pom.xml
legah2045 Jun 18, 2023
82a468c
Update pom.xml
legah2045 Jun 18, 2023
cb2556b
Update home.jsp
legah2045 Jun 18, 2023
1409aa6
Update home.jsp
legah2045 Jun 18, 2023
36e2e92
Create Jenkinsfile-July2023
legah2045 Jun 23, 2023
3eaae48
Update Jenkinsfile-July2023
legah2045 Jun 23, 2023
907a1de
Update Jenkinsfile-July2023
legah2045 Jun 23, 2023
eadb5a8
Create Jenkinsfile-declarative23
legah2045 Jun 23, 2023
5ac17e1
Update pom.xml
legah2045 Sep 6, 2023
eb0c95c
Update pom.xml
legah2045 Sep 6, 2023
eff2a32
Update pom.xml
legah2045 Sep 9, 2023
bd08dda
Update home.jsp
legah2045 Sep 10, 2023
09185e0
Update home.jsp
legah2045 Sep 10, 2023
87343c9
Update home.jsp
legah2045 Sep 10, 2023
b70aad4
Create Jenkinsfile-Sep23-scripted
legah2045 Sep 13, 2023
10539f7
Create Jenkinsfile-build23
legah2045 Sep 13, 2023
81bf6bf
Create Jenkinsfile-sep23-decl
legah2045 Sep 13, 2023
436f78d
Update Jenkinsfile-Sep23-scripted
legah2045 Sep 16, 2023
a084318
Update pom.xml
legah2045 Dec 15, 2023
87fed3a
Update pom.xml
legah2045 Dec 15, 2023
1fad858
Update pom.xml
legah2045 Dec 15, 2023
b5f64af
Update Dockerfile
legah2045 Dec 15, 2023
fd145bb
Create tesla.xml
legah2045 Dec 16, 2023
c1b576e
Update home.jsp
legah2045 Dec 17, 2023
4783507
Create Jenkinsfile34
legah2045 Dec 17, 2023
9bc5ed1
Create Jenkinsfile_Dec2023
legah2045 Dec 17, 2023
5363add
Update Jenkinsfile_Dec2023
legah2045 Dec 17, 2023
adade40
Update home.jsp
legah2045 Dec 22, 2023
0334fa0
Create Jenkinsfile_declarativeDec2023
legah2045 Dec 22, 2023
9bb6960
Update Jenkinsfile_Dec2023
legah2045 Dec 23, 2023
c28d0cd
Update pom.xml
legah2045 Mar 19, 2024
fdf25a4
Update home.jsp
legah2045 Mar 20, 2024
0069c24
Create Jenkinfile-dec-March2024
legah2045 Mar 20, 2024
4d7abd7
Update home.jsp with crucial invitation.
legah2045 Mar 20, 2024
e1fc158
Update Jenkinfile-dec-March2024
legah2045 Mar 20, 2024
f089db9
Update Jenkinfile-dec-March2024
legah2045 Mar 20, 2024
22b28f5
Update Jenkinfile-dec-March2024
legah2045 Mar 20, 2024
56e046f
Update pom.xml
legah2045 Jun 9, 2024
90e6b78
Update pom.xml
legah2045 Jun 9, 2024
c45eb87
Update pom.xml
legah2045 Jun 9, 2024
de15f2d
Update home.jsp
legah2045 Jun 9, 2024
e10caed
Update Dockerfile
legah2045 Jun 9, 2024
34abc26
Update home.jsp
legah2045 Jun 14, 2024
5fdf3bc
Create Jenkinsfile_June2024
legah2045 Jun 14, 2024
9558a87
Update Dockerfile
johnsonanyetei Jun 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
FROM tomcat:8.0.20-jre8
# Dummy text to test
COPY target/maven-web-application*.war /usr/local/tomcat/webapps/maven-web-application.war
#### Good stuff
## jesus is Lord
# thanks team member uk for help
COPY target/*.war /usr/local/tomcat/webapps/maven-web-app.war
96 changes: 96 additions & 0 deletions Jenkinfile-dec-March2024
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
pipeline{
agent any
//options{}
//triggers{}
tools {
maven 'maven3.9.6'
}
stages{
stage('1.CloneCode'){
steps{
sh "echo cloning the latest app version"
git 'https://github.com/LandmakTechnology/maven-web-application'
}
}
stage('2.mvnBuild'){
steps{
sh "echo validate, compile and perform UnitTesting"
sh "echo UnitTesting must passed for artifacts to be created"
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"
deploy adapters: [tomcat9(credentialsId: 'tomcat-credentials', path: '', url: 'http://172.31.30.76:8080/')], contextPath: null, war: 'target/*war'

}
}

stage('6.ManualApproval'){
steps{
sh "echo Please Review and confirm within 5 days"
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"
deploy adapters: [tomcat9(credentialsId: 'tomcat-credentials', path: '', url: 'http://172.31.30.76:8080/')], contextPath: null, war: 'target/*war'

}
}
}
post{
always{
emailext body: '''Hi Team,

Build status.

Landmark Technologies.
Tel: +1 437 215 2483
''', recipientProviders: [buildUser(), developers(), contributor()], subject: 'Build status', to: '[email protected]'
}
success{
emailext body: '''Hi Team,

Build succeeded.

Landmark Technologies.
Tel: +1 437 215 2483
''', recipientProviders: [buildUser(), developers(), contributor()], subject: 'Build status', to: '[email protected]'
}
failure{
emailext body: '''Hi Team,

Build failed.

Landmark Technologies.
Tel: +1 437 215 2483
''', recipientProviders: [buildUser(), developers(), contributor()], subject: 'Build status', to: '[email protected]'

}
}
*/
}
118 changes: 65 additions & 53 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,54 +1,66 @@
node
{

def mavenHome = tool name: "maven3.6.2"

echo "GitHub BranhName ${env.BRANCH_NAME}"
echo "Jenkins Job Number ${env.BUILD_NUMBER}"
echo "Jenkins Node Name ${env.NODE_NAME}"

echo "Jenkins Home ${env.JENKINS_HOME}"
echo "Jenkins URL ${env.JENKINS_URL}"
echo "JOB Name ${env.JOB_NAME}"

properties([[$class: 'JiraProjectProperty'], buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '2', daysToKeepStr: '', numToKeepStr: '2')), pipelineTriggers([pollSCM('* * * * *')])])

stage("CheckOutCodeGit")
{
git branch: 'development', credentialsId: '65fb834f-a83b-4fe7-8e11-686245c47a65', url: 'https://github.com/MithunTechnologiesDevOps/maven-web-application.git'
}

stage("Build")
{
sh "${mavenHome}/bin/mvn clean package"
}

/*
stage("ExecuteSonarQubeReport")
{
sh "${mavenHome}/bin/mvn sonar:sonar"
}

stage("UploadArtifactsintoNexus")
{
sh "${mavenHome}/bin/mvn deploy"
}

stage("DeployAppTomcat")
{
sshagent(['423b5b58-c0a3-42aa-af6e-f0affe1bad0c']) {
sh "scp -o StrictHostKeyChecking=no target/maven-web-application.war [email protected]:/opt/apache-tomcat-9.0.34/webapps/"
}
}

stage('EmailNotification')
{
mail bcc: '[email protected]', body: '''Build is over
pipeline{
agent any
tools {
maven "maven3.6.0"
}
stages {
stage('1GetCode'){
steps{
sh "echo 'cloning the latest application version' "
git branch: 'feature', credentialsId: 'gitHubCredentials', url: 'https://github.com/LandmakTechnology/maven-web-application'
}
}
stage('3Test+Build'){
steps{
sh "echo 'running JUnit-test-cases' "
sh "echo 'testing must passed to create artifacts ' "
sh "mvn clean package"
}
}
/*
stage('4CodeQuality'){
steps{
sh "echo 'Perfoming CodeQualityAnalysis' "
sh "mvn sonar:sonar"
}
}
stage('5uploadNexus'){
steps{
sh "mvn deploy"
}
}
stage('8deploy2prod'){
steps{
deploy adapters: [tomcat8(credentialsId: 'tomcat-credentials', path: '', url: 'http://35.170.249.131:8080/')], contextPath: null, war: 'target/*war'
}
}
}
post{
always{
emailext body: '''Hey guys
Please check build status.

Thanks,
Mithun Technologies,
9980923226.''', cc: '[email protected]', from: '', replyTo: '', subject: 'Build is over!!', to: '[email protected]'
}
*/

}
Thanks
Landmark
+1 437 215 2483''', recipientProviders: [buildUser(), developers()], subject: 'success', to: '[email protected]'
}
success{
emailext body: '''Hey guys
Good job build and deployment is successful.

Thanks
Landmark
+1 437 215 2483''', recipientProviders: [buildUser(), developers()], subject: 'success', to: '[email protected]'
}
failure{
emailext body: '''Hey guys
Build failed. Please resolve issues.

Thanks
Landmark
+1 437 215 2483''', recipientProviders: [buildUser(), developers()], subject: 'success', to: '[email protected]'
}
}
*/
}
}
26 changes: 26 additions & 0 deletions Jenkinsfile-July2023
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
node{
def mavenHome = tool name: 'maven3.8.2'
stage('1Clone'){
git 'https://github.com/LandmakTechnology/maven-web-application'
}
stage('2Test+build'){
sh "${mavenHome}/bin/mvn clean package"
}
/*
stage('SonarQube'){
sh "${mavenHome}/bin/mvn sonar:sonar"
}
stage('4UploadArtifacts'){
sh "${mavenHome}/bin/mvn deploy"
}

stage('5Deploy'){
deploy adapters: [tomcat9(credentialsId: 'tomcat-credentials', path: '', url: 'http://54.166.85.32:8177/')], contextPath: null, war: 'target/*war'
}
stage('6Notification'){
emailext body: '''Hi Team,
Build status
Landmark Technologies''', recipientProviders: [developers(), contributor()], subject: 'build status', to: 'developers'
}
*/
}
55 changes: 55 additions & 0 deletions Jenkinsfile-Sep23-scripted
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
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: '[email protected]'

}
}

56 changes: 56 additions & 0 deletions Jenkinsfile-build23
Original file line number Diff line number Diff line change
@@ -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: '[email protected]'

}
}
Loading