Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
5531969
Update pom.xml
sa5i Apr 27, 2025
33d23ed
Update pom.xml
sa5i Apr 27, 2025
6ee9ff1
Update pom.xml
sa5i Apr 27, 2025
a06d3c2
Update pom.xml
sa5i Apr 27, 2025
02d7519
Update pom.xml
sa5i Apr 27, 2025
2bc5134
Update pom.xml
sa5i Apr 27, 2025
e69d2b3
Update pom.xml
sa5i Apr 27, 2025
dd9e147
Update pom.xml
sa5i Apr 27, 2025
fd7295c
Update pom.xml
sa5i Apr 27, 2025
44d6d7d
Update pom.xml
sa5i Apr 27, 2025
912ad2b
Update home.jsp
sa5i Apr 27, 2025
0b77300
Update pom.xml
sa5i Apr 27, 2025
ae4812a
Update pom.xml
sa5i Apr 29, 2025
06ea7cb
Update pom.xml
sa5i Apr 29, 2025
4e52067
Update pom.xml
sa5i Apr 29, 2025
4d58f49
Update pom.xml
sa5i Apr 29, 2025
d380a10
Update home.jsp
sa5i Apr 29, 2025
1ece26d
Update pom.xml
sa5i Apr 29, 2025
f2e56de
Update pom.xml
sa5i Apr 29, 2025
148e722
Update pom.xml
sa5i Apr 29, 2025
d9ac5aa
Update pom.xml
sa5i Apr 29, 2025
73fa28a
Update pom.xml
sa5i Apr 29, 2025
300da52
Update home.jsp
sa5i Apr 29, 2025
0ef9771
Update home.jsp
sa5i Apr 30, 2025
d117029
Update pom.xml
sa5i Apr 30, 2025
a28e808
Update home.jsp
sa5i Apr 30, 2025
9c37c68
Update pom.xml
sa5i May 1, 2025
b3abc02
Update pom.xml
sa5i May 1, 2025
a39383d
Update pom.xml
sa5i May 1, 2025
5c5a494
Update pom.xml
sa5i May 4, 2025
e61ef20
Update home.jsp
sa5i May 4, 2025
8b96567
Update pom.xml
sa5i May 8, 2025
4cc0952
Create Jenkinsfile
sa5i May 8, 2025
fc39e10
Rename Jenkinsfile to Jenkinsfile-1.0.1
sa5i May 8, 2025
f35b18a
Update and rename Jenkinsfile-1.0.1 to Jenkinsfile
sa5i May 8, 2025
d09abc3
Update Jenkinsfile
sa5i May 8, 2025
ca2f824
Update Jenkinsfile
sa5i May 8, 2025
bbc5936
Update Jenkinsfile
sa5i May 8, 2025
e42598a
Update Jenkinsfile
sa5i May 8, 2025
c7add0d
Update Jenkinsfile
sa5i May 8, 2025
1626163
Update Jenkinsfile
sa5i May 8, 2025
8db95c9
Update pom.xml
sa5i May 9, 2025
f4f9f77
Update Jenkinsfile
sa5i May 9, 2025
4285bea
Update pom.xml
sa5i May 9, 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
68 changes: 68 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
pipeline {
agent any
tools {
maven 'maven-3.9.9'
}
stages {
stage('Git Checkout') {
steps {
git branch: 'prod', credentialsId: 'github-pat', url: 'https://github.com/sa5i/maven-web-app-project-kk-funda.git'
}
}
stage('Maven compile') {
steps {
sh 'mvn compile'
}
}
stage('Maven Build') {
steps {
sh 'mvn package'
}
}
stage('Sonarqube Analysis') {
steps {
sh 'mvn clean sonar:sonar'
}
}
stage('Nexus Upload') {
steps {
sh 'mvn clean deploy'
}
}
stage('Deploy to Tomcat') {
steps {
sh """
curl -u admin:admin \
--upload-file /var/lib/jenkins/workspace/stg-app-declarative-PL/target/maven-web-application.war \
"http://13.61.194.134:8080/manager/text/deploy?path=/maven-web-application&update=true"
"""
}
}
}

post {
success {
emailext (
to: 'skdevops025@gmail.com',
subject: "SUCCESS: ${env.JOB_NAME} Build #${env.BUILD_NUMBER}",
body: """<p>Good news! The build <b>${env.BUILD_NUMBER}</b> of <b>${env.JOB_NAME}</b> completed successfully.</p>
<p>Check details at: <a href='${env.BUILD_URL}'>${env.BUILD_URL}</a></p>""",
mimeType: 'text/html'
)
}
failure {
emailext (
to: 'skdevops025@gmail.com',
subject: "FAILURE: ${env.JOB_NAME} Build #${env.BUILD_NUMBER}",
body: """<p>The build <b>${env.BUILD_NUMBER}</b> of <b>${env.JOB_NAME}</b> has failed.</p>
<p>Check details at: <a href='${env.BUILD_URL}'>${env.BUILD_URL}</a></p>""",
mimeType: 'text/html'
)
}
always {
echo 'Build finished. Email notification attempted.'
}


}
}
20 changes: 13 additions & 7 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<groupId>com.kk</groupId>
<artifactId>maven-web-application-kkfunda</artifactId>
<packaging>war</packaging>
<version>0.0.1-SNAPSHOT</version>
<version>0.0.8</version>

<name>maven-web-application</name>

Expand All @@ -21,9 +21,9 @@
<spring.version>5.3.34</spring.version>
<junit.version>4.11</junit.version>
<log4j.version>1.2.17</log4j.version>
<sonar.host.url>http://54.221.74.74:9000/</sonar.host.url>
<sonar.host.url>http://51.21.221.227:9000/</sonar.host.url>
<sonar.login>admin</sonar.login>
<sonar.password>passw0rd</sonar.password>
<sonar.password>admin1</sonar.password>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

Expand Down Expand Up @@ -97,14 +97,20 @@

<repository>
<id>nexus</id>
<name>KK FUNDA Releases Nexus Repository</name>
<url>http://172.31.40.189:8081/repository/flipkart-release/</url>
<name>Sasi Releases Nexus Repository</name>
<url>http://51.21.134.226:8081/repository/maven_webapp-release/</url>
</repository>

<snapshotRepository>
<id>nexus</id>
<name>KK FUNDA Snapshot Nexus Repository </name>
<url>http://172.31.40.189:8081/repository/flipkart-snapshot/</url>
<name>Sasi Snapshot Nexus Repository </name>
<url>http://51.21.134.226:8081/repository/maven_webapp-snapshot/</url>
<releases>
<enabled>false</enabled> <!-- Disable release versions here -->
</releases>
<snapshots>
<enabled>true</enabled> <!-- Enable snapshot versions here -->
</snapshots>
</snapshotRepository>

</distributionManagement>
Expand Down
8 changes: 3 additions & 5 deletions src/main/webapp/jsps/home.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
</head>
</head>
<body>
<h1 align="center">Welcome to KK AWS</h1>
<h1 align="center"> KK FUNDA</h1>
<h1 align="center">Welcome to AWS/GCP-DevOps/SRE</h1>
<h1 align="center"> DevOps</h1>
<hr>
<br>
<h1><h3> Server Side IP Address </h3><br>
Expand All @@ -35,9 +35,7 @@ out.println("Server Host Name :: "+inetAddress.getHostName());
</span>
<span style="font-weight: bold;">
KK FUNDA,
Martha Halli, Banglore,
Bangalore,
+91-9676831734,+91-9676831734
Banglore,
kkeducationblr@gmail.com
<br>
<a href="mailto:kkeducation@gmail.com">Mail to KK FUNDA</a>
Expand Down