Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
82 commits
Select commit Hold shift + click to select a range
b2b72b9
Update JenkinsfileJan2024
devopstrainingblr Mar 29, 2024
5f04f42
Update pom.xml
devopstrainingblr Jun 24, 2024
4786f83
Update pom.xml
devopstrainingblr Jul 25, 2024
f6e1475
Update Dockerfile
mithuntechdevopstraining Sep 9, 2024
253c246
Updated
mithuntechdevopstraining Sep 9, 2024
a765505
Updated
mithuntechdevopstraining Sep 23, 2024
5d1b21f
Update pom.xml
mithuntechdevopstraining Oct 22, 2024
2a5a025
Updated Code
mithuntechdevopstraining Oct 22, 2024
b609341
Updated Code
mithuntechdevopstraining Dec 18, 2024
b2896cf
Updated
mithuntechdevopstraining Jan 4, 2025
275a07f
Updated Code
mithuntechdevopstraining Jan 9, 2025
751b9fb
Updated Code
mithuntechdevopstraining Jan 21, 2025
9550392
Udpated Code
mithuntechdevopstraining Jan 25, 2025
d068014
Updated Code
mithuntechdevopstraining Feb 7, 2025
ca769ca
Updated Code
mithuntechdevopstraining Feb 7, 2025
daa69e6
Updated
mithuntechdevopstraining Feb 7, 2025
932c0ad
Update home.jsp
devopstrainingblr Mar 4, 2025
10e6c3f
Update home.jsp
devopstrainingblr Mar 10, 2025
f36cda8
Update pom.xml
devopstrainingblr Mar 24, 2025
4b55a7f
Updated Project Code
PavanKumarKJ347 Apr 4, 2025
bc1bb1b
Updated Project Code
PavanKumarKJ347 Apr 4, 2025
0d112ec
Updated Project Code
PavanKumarKJ347 Apr 4, 2025
a9050bc
Updated Project Code
PavanKumarKJ347 Apr 4, 2025
b06d197
Updated Project Code
PavanKumarKJ347 Apr 4, 2025
b42b8ba
Updated Project Code
PavanKumarKJ347 Apr 4, 2025
1702d1e
Created Jenkinsfile for Docker
PavanKumarKJ347 Jul 14, 2025
ba14a52
Created Jenkinsfile for Docker
PavanKumarKJ347 Jul 14, 2025
93f5c26
Working on Jenkinsfile for Docker
PavanKumarKJ347 Jul 15, 2025
2c4a175
Working on Jenkinsfile for Docker
PavanKumarKJ347 Jul 15, 2025
8160a07
Working on Jenkinsfile for Docker
PavanKumarKJ347 Jul 15, 2025
cb7107b
Working on Jenkinsfile for Docker
PavanKumarKJ347 Jul 15, 2025
0560c5c
Working on Jenkinsfile for Docker
PavanKumarKJ347 Jul 15, 2025
0b56680
Working on Jenkinsfile for Docker
PavanKumarKJ347 Jul 15, 2025
863d064
Working on Jenkinsfile for Docker
PavanKumarKJ347 Jul 15, 2025
3ec680e
Working on Jenkinsfile for Docker
PavanKumarKJ347 Jul 15, 2025
0197ba6
Working on Jenkinsfile for Docker
PavanKumarKJ347 Jul 15, 2025
432abf9
Working on Jenkinsfile for Docker
PavanKumarKJ347 Jul 15, 2025
8332cf7
Working on Jenkinsfile for Docker
PavanKumarKJ347 Jul 15, 2025
5f3a6a0
Working on Jenkinsfile for Docker
PavanKumarKJ347 Jul 15, 2025
3352788
Working on Jenkinsfile for Docker
PavanKumarKJ347 Jul 15, 2025
35644aa
Update pom.xml
swamymaverick Aug 5, 2025
583c5cc
Update pom.xml
swamymaverick Aug 5, 2025
8459485
Update home.jsp
swamymaverick Aug 5, 2025
d321504
Update home.jsp
swamymaverick Aug 5, 2025
b8ea149
Update home.jsp
swamymaverick Aug 6, 2025
ec3b307
Update home.jsp
swamymaverick Aug 6, 2025
8881d2a
Update home.jsp
swamymaverick Aug 6, 2025
6ba3bab
Update home.jsp
swamymaverick Aug 6, 2025
adc3710
Update home.jsp
swamymaverick Aug 6, 2025
098b013
Update home.jsp
swamymaverick Aug 6, 2025
5871f8c
Update home.jsp
swamymaverick Aug 6, 2025
e796826
Update home.jsp
swamymaverick Aug 6, 2025
30f73e0
Update home.jsp
swamymaverick Aug 6, 2025
87da511
Update home.jsp
swamymaverick Aug 6, 2025
5a68c76
Update home.jsp
swamymaverick Aug 7, 2025
5c367b4
Update pom.xml
swamymaverick Aug 7, 2025
2fe05ac
Update pom.xml
swamymaverick Aug 7, 2025
12b7798
Update pom.xml
swamymaverick Aug 7, 2025
38bce63
Update home.jsp
swamymaverick Aug 7, 2025
26eba6a
Update home.jsp
swamymaverick Aug 7, 2025
45f2ac1
Update home.jsp
swamymaverick Aug 7, 2025
17c6fec
Update home.jsp
swamymaverick Aug 7, 2025
e7b114e
Update home.jsp
swamymaverick Aug 7, 2025
27bc9c8
Update home.jsp
swamymaverick Aug 7, 2025
f5c29dc
Update home.jsp
swamymaverick Aug 7, 2025
1b92ba7
Update home.jsp
swamymaverick Aug 7, 2025
13d754e
Update home.jsp
swamymaverick Aug 7, 2025
8777ed6
Update pom.xml
swamymaverick Aug 9, 2025
3b9b7d9
Update home.jsp
swamymaverick Aug 9, 2025
572feaa
Update home.jsp
swamymaverick Aug 9, 2025
4607e1a
Update home.jsp
swamymaverick Aug 9, 2025
6f32891
Update home.jsp
swamymaverick Aug 9, 2025
b903ec8
Update home.jsp
swamymaverick Aug 10, 2025
96116c9
Create Jenkinsfiles
swamymaverick Aug 10, 2025
c9e83d8
Update Jenkinsfiles
swamymaverick Aug 10, 2025
5870db1
Update Jenkinsfiles
swamymaverick Aug 10, 2025
2a9f429
Update Jenkinsfiles
swamymaverick Aug 10, 2025
a5fa285
Update Jenkinsfiles
swamymaverick Aug 10, 2025
3bd164a
Update Jenkinsfiles
swamymaverick Aug 10, 2025
2a05316
Update home.jsp
swamymaverick Aug 10, 2025
91cd4c2
Update home.jsp
swamymaverick Aug 10, 2025
b3c0784
Update home.jsp
swamymaverick Aug 10, 2025
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
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
FROM tomcat:8.0.21-jre8
FROM tomcat:9.0-jdk11
COPY target/maven-web-application.war /usr/local/tomcat/webapps/maven-web-application.war
73 changes: 73 additions & 0 deletions JenkinsFileDocker
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
pipeline
{
agent any

tools
{
maven 'Maven_3.9.7'
}

environment
{
buildNumber = "${BUILD_NUMBER}"
}

stages
{
stage('Checkout Code to Jenkins from GitHub')
{
steps()
{
git branch: 'master', url: 'https://github.com/MithunTechnologiesDevOps/maven-web-application.git'
}
}

stage('Build Artifact using Maven')
{
steps()
{
sh 'mvn clean package'
}
}

stage("Build Docker Image")
{
steps()
{
sh 'docker build -t mithuntechnologies/maven-web-application:${buildNumber} .'
}
}

stage("Authenticate and Push Docker Image to Docker Hub")
{
steps()
{
withCredentials([string(credentialsId: 'Docker_Hub_Password', variable: 'Docker_Hub_Password')])
{
sh 'docker login -u mithuntechnologies -p ${Docker_Hub_Password}'
}
sh 'docker push mithuntechnologies/maven-web-application:${buildNumber}'
}
}

stage('Remove Docker Image from Jenkins Locally')
{
steps()
{
sh 'docker rmi -f mithuntechnologies/maven-web-application:${buildNumber}'
}
}

stage('Deploy Application to Deployment Server')
{
steps()
{
sshagent(['DeploymentServer_SSH'])
{
sh "ssh -o StrictHostKeyChecking=no [email protected] docker rm -f mavenwebapplication || true"
sh "ssh -o StrictHostKeyChecking=no [email protected] docker run -d --name mavenwebapplication -p 8080:8080 mithuntechnologies/maven-web-application:$Build_Number"
}
}
}
}
}
File renamed without changes.
49 changes: 0 additions & 49 deletions Jenkinsfile7AMNovBatch2022

This file was deleted.

36 changes: 0 additions & 36 deletions JenkinsfileApril6AMBatch

This file was deleted.

84 changes: 0 additions & 84 deletions JenkinsfileAugBacth2022

This file was deleted.

35 changes: 0 additions & 35 deletions JenkinsfileFeb7.30Batch

This file was deleted.

87 changes: 0 additions & 87 deletions JenkinsfileJan2024

This file was deleted.

Loading