Skip to content

want to update #664

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

Open
wants to merge 37 commits into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 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
136a598
Working on JenkinsFileDocker
itspranavdubey Jul 29, 2025
bf32c34
Working on JenkinsFileDocker added stage for maven
itspranavdubey Jul 29, 2025
5727bef
Working on JenkinsFileDocker added stage for maven
itspranavdubey Jul 29, 2025
c0bb7e1
Working on JenkinsFileDocker added stage for maven
itspranavdubey Jul 29, 2025
a0287fb
Working on JenkinsFileDocker added stage for docker
itspranavdubey Jul 29, 2025
813a029
Working on JenkinsFileDocker added stage to Authenticate & Push to Do…
itspranavdubey Jul 29, 2025
b341d96
Working on JenkinsFileDocker added stage to Authenticate & Push to Do…
itspranavdubey Jul 29, 2025
2cae627
Working on JenkinsFileDocker added stage to Authenticate & Push to Do…
itspranavdubey Jul 29, 2025
688fc67
Working on JenkinsFileDocker added stage to Authenticate & Push to Do…
itspranavdubey Jul 29, 2025
02888c7
Working on JenkinsFileDocker added stages to deploy app to deployment…
itspranavdubey Jul 29, 2025
6be591e
Working on JenkinsFileDocker added stages to deploy app to deployment…
itspranavdubey Jul 29, 2025
bfd13ac
changed in Home.jsp
itspranavdubey Jul 29, 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
68 changes: 68 additions & 0 deletions JenkinsFileDocker
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
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/itspranavdubey/maven-web-application.git'
}
}
stage('Build Artifact Using Maven')
{
steps()
{
sh 'mvn clean package'
}
}
stage("Build Docker Image")
{
steps()
{
sh 'docker build -t itspranavdubey/logindockerjenkins:${buildNumber} .'
}
}
stage("Authenticate and Push Docker Image To Docker Hub")
{
steps()
{
withCredentials([string(credentialsId: 'Dockerhubpassword', variable: 'Dockerhubpassword')])
{
sh 'docker login -u itspranavdubey -p ${Dockerhubpassword}'
}
sh 'docker push itspranavdubey/logindockerjenkins:${buildNumber}'
}
}
stage('Remove Docker Images From Jenkins Locally')
{
steps()
{
sh 'docker rmi -f itspranavdubey/logindockerjenkins:${buildNumber}'
}
}
stage('Deploy App to Deployement 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 itspranavdubey/logindockerjenkins:$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