Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
67 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
5efe53c
Updated Project Code
PavanKumarKJ347 Sep 23, 2025
83b5a6f
Created JenkinsFile for Kubernetes
PavanKumarKJ347 Sep 23, 2025
93551af
Added Code for Docker Image Build
PavanKumarKJ347 Sep 23, 2025
c5c3d5e
Added Jenkinsfile to Push Docker Image
PavanKumarKJ347 Sep 23, 2025
1bb2b4c
Added Jenkinsfile to Push Docker Image
PavanKumarKJ347 Sep 23, 2025
964a45c
Updated Jenkinsfile
PavanKumarKJ347 Sep 23, 2025
5024f17
Updated Jenkinsfile
PavanKumarKJ347 Sep 23, 2025
7261b07
Updated Jenkinsfile
PavanKumarKJ347 Sep 23, 2025
35c450c
Updated Manifest File
PavanKumarKJ347 Sep 23, 2025
b2771d1
Updated Manifest File
PavanKumarKJ347 Sep 23, 2025
be6e0d0
Updated Project Code
PavanKumarKJ347 Sep 25, 2025
1994227
Updated Project Code
PavanKumarKJ347 Sep 25, 2025
9af4814
Create Jenkinsfile
PavanKumarKJ347 Sep 26, 2025
9067d25
Updated Jenkinsfile
PavanKumarKJ347 Sep 26, 2025
4869f0e
Update pom.xml
gopialuri24 Oct 21, 2025
1857ce6
Update pom.xml
gopialuri24 Oct 21, 2025
8ecc6ad
Update pom.xml
gopialuri24 Oct 21, 2025
732b6ed
Update pom.xml
gopialuri24 Oct 21, 2025
1683f7f
Update pom.xml
gopialuri24 Oct 21, 2025
2641a5a
Update pom.xml
gopialuri24 Oct 21, 2025
24c930b
Update pom.xml
gopialuri24 Oct 21, 2025
169208f
Update home.jsp
gopialuri24 Oct 27, 2025
0b23368
Update home.jsp
gopialuri24 Oct 27, 2025
2a15ca5
Update home.jsp
gopialuri24 Oct 27, 2025
9bf9264
Update home.jsp
gopialuri24 Oct 27, 2025
cf7249b
Update home.jsp
gopialuri24 Oct 27, 2025
1fd13a1
Update Jenkinsfile
gopialuri24 Oct 30, 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
26 changes: 0 additions & 26 deletions .github/workflows/maven.yml

This file was deleted.

34 changes: 31 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,31 @@
.classpath
.project
/.settings
#Operating System Files
*.DS_Store
Thumbs.db
*.sw?
.#*
*#
*~
*.sublime-*

#Build Artifacts
**/.gradle/
**/build/
**/target/
**/bin/
**/dependency-reduced-pom.xml

#Eclipse Project Files
.metadata
.metadata/
**/.classpath
**/.project
**/.settings/

#IntelliJ IDEA Files
**/*.iml
**/*.ipr
**/*.iws
**/*.idea

#Visual Studio Code Files
**/.vscode/
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"
}
}
}
}
}
75 changes: 75 additions & 0 deletions JenkinsFileKubernetes
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
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 149536451818.dkr.ecr.ap-south-1.amazonaws.com/maven-web-application:${buildNumber} .'
}
}

stage('Authenticate and Push Docker Image to AWS ECR')
{
steps()
{
sh 'aws ecr get-login-password --region ap-south-1 | docker login --username AWS --password-stdin 149536451818.dkr.ecr.ap-south-1.amazonaws.com'
sh 'docker push 149536451818.dkr.ecr.ap-south-1.amazonaws.com/maven-web-application:${buildNumber}'
}
}

stage('Remove Docker Image from Jenkins Locally')
{
steps()
{
sh 'docker rmi -f 149536451818.dkr.ecr.ap-south-1.amazonaws.com/maven-web-application:${buildNumber}'
}
}

stage('Update Image Tag in Kubernetes Manifest')
{
steps()
{
sh "sed -i 's/Build_Tag/${buildNumber}/g' MavenWebApplication.yaml"
}
}

stage("Deploy Application in AWS EKS Cluster")
{
steps()
{
sh 'kubectl delete deployment webpage-deployment -n production || true'
sh 'kubectl apply -f MavenWebApplication.yaml'
}
}
}
}
26 changes: 26 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
node {
def mavenHome = tool name: 'Maven-3.9.10'
// Stage 1: Checkout code from GitHub
stage('CheckoutCode') {
git branch: 'development',
credentialsId: '76cfa28f-7bb1-4202-828f-7bef3c5197fc',
url: 'https://github.com/gopialuri24/maven-web-application.git'
}

// Stage 2: Build the project using Maven
stage('Build') {
sh "${mavenHome}/bin/mvn clean package"
}

stage('ExecuteSonarQubeReport') {
sh "${mavenHome}/bin/mvn clean sonar:sonar"
}
stage('UploadtoNexus') {
sh "${mavenHome}/bin/mvn clean deploy"
}
stage("DeployTomcat"){
sshagent(['879d2335-ec52-478a-9e95-bda25855527f']) {
sh "scp -o StrictHostKeyChecking=no target/maven-web-application.war [email protected]:/opt/apache-tomcat-9.0.110/webapps"
}
}
}
75 changes: 0 additions & 75 deletions Jenkinsfile1

This file was deleted.

49 changes: 0 additions & 49 deletions Jenkinsfile7AMNovBatch2022

This file was deleted.

Loading