Skip to content
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
3919b1b
Updated jenkinsfile_final
narra18 May 27, 2025
d55a5d8
Update deployment image to version 8
narra18 Jun 1, 2025
38d6d5d
Update deployment.yml
narra18 Jun 1, 2025
8a9f717
Update index.jsp
narra18 Jun 1, 2025
7ee0600
Update pom.xml
narra18 Jun 1, 2025
7744179
Update deployment image to version 9
narra18 Jun 1, 2025
f86681a
Update index.jsp
narra18 Jun 1, 2025
0bb4c51
Update deployment image to version 16
narra18 Jun 8, 2025
2fb55a4
third
narra18 Jun 8, 2025
8eaf3af
Update deployment image to version 17
narra18 Jun 8, 2025
21b4ba2
Merge pull request #2 from narra18/third-1
narra18 Jun 8, 2025
bffccaa
Update deployment image to version 18
narra18 Jun 8, 2025
5d4df64
latest
narra18 Jun 10, 2025
1e13e6e
2
narra18 Jun 10, 2025
cddcfed
Update deployment image to version 19
narra18 Jun 10, 2025
884394c
Merge pull request #3 from narra18/latest
narra18 Jun 10, 2025
c155559
Update deployment image to version 20
narra18 Jun 10, 2025
5a791b2
Update deployment image to version 22
narra18 Jun 11, 2025
446b422
Update deployment image to version 23
narra18 Jun 11, 2025
4a2cf6e
Update deployment image to version 24
narra18 Jun 25, 2025
069ff79
Update index.jsp
narra18 Jun 25, 2025
c348936
Update deployment image to version 25
narra18 Jun 25, 2025
6a0a3a2
Update deployment image to version 26
narra18 Jun 26, 2025
c35db60
Update deployment image to version 35
narra18 Oct 30, 2025
1c30702
Update Docker image version in deployment.yml
narra18 Oct 30, 2025
1f71948
Update date in index.jsp header
narra18 Oct 30, 2025
0d54de4
Update header text to include link to Google
narra18 Oct 30, 2025
2cb4107
Update deployment image to version 36
narra18 Oct 30, 2025
1a880d5
Update index.jsp with new content and links
narra18 Oct 30, 2025
bd503f7
Update deployment image to version 37
narra18 Oct 30, 2025
be1a7e7
Update container image to development version
narra18 Oct 30, 2025
1fcb433
Update header and remove Google search links
narra18 Oct 30, 2025
2b639a7
Update deployment image to version 2
narra18 Oct 30, 2025
d0c8668
Update deployment image to version 3
narra18 Oct 31, 2025
651af23
Correct capitalization in header text
narra18 Oct 31, 2025
a51f907
Update deployment image to version 4
narra18 Oct 31, 2025
936bdcb
Update deployment image to version 5
narra18 Nov 7, 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
44 changes: 44 additions & 0 deletions 1.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
pipeline {
agent any
tools{
jdk 'jdk-8'
}

stages {
stage('g
steps {
echo 'scm'
git branch: 'main', url: 'https://github.com/devopstraininghub/mindcircuit13.git'
}
}

stage('sonar') {
steps {
echo 'scanning project'
sh '''mvn sonar:sonar \\
-Dsonar.host.url=http://3.83.18.215:9000 \\
-Dsonar.login=ae71c2e5c7b3c5932dea385c16eb074bd9ad764d'''
}
}

stage('build') {
steps {
echo 'generating artifact using maven build tool'
sh 'mvn clean install'
}
}

stage('nexus artifactory') {
steps {
echo 'publish to nexus'
sh 'mvn deploy'
}
}
stage('deploy to tomcat') {
steps {
echo 'tomcat deploy'
deploy adapters: [tomcat9(credentialsId: 'tomcat', path: '', url: 'http://100.25.144.30:8091/')], contextPath: 'mc-app-batch13', war: '**/*.war'
}
}
}
}
2 changes: 1 addition & 1 deletion deploymentfiles/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
spec:
containers:
- name: mc-app
image: devopshubg333/batch13:5
image: narra18/niteeshyncicd-dev:5
ports:
- containerPort: 8080

Expand Down
2 changes: 1 addition & 1 deletion jenkinsfile2
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pipeline {
}

stages {
stage('git') {
stage('g
steps {
echo 'scm'
git branch: 'main', url: 'https://github.com/devopstraininghub/mindcircuit13.git'
Expand Down
20 changes: 10 additions & 10 deletions jenkinsfile_final
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ pipeline {
stage('checkout') {
steps {
echo 'Cloning GIT HUB Repo '
git branch: 'main', url: 'https://github.com/devopstraininghub/mindcircuit13.git'
git branch: 'main', url: 'https://github.com/narra18/mindcircuit13-AN.git'
}
}

Expand All @@ -22,8 +22,8 @@ pipeline {
sh 'ls -ltr'

sh ''' mvn sonar:sonar \\
-Dsonar.host.url=http://44.210.116.12:9000 \\
-Dsonar.login=squ_a46b6947d43a812180415ff94219120d2ddebcea'''
-Dsonar.host.url=https://sonarcloud.io \\
-Dsonar.login=d7aa556206cb56225ee37d01b1127686f7254662'''
}
}

Expand All @@ -41,7 +41,7 @@ pipeline {
stage('Docker Image') {
steps {
echo 'Docker Image building'
sh 'docker build -t devopshubg333/batch13:${BUILD_NUMBER} .'
sh 'docker build -t narra18/niteeshyncicd:${BUILD_NUMBER} .'
}
}

Expand All @@ -54,7 +54,7 @@ pipeline {
sh 'docker login -u devopshubg333 -p ${dockerhub}'

}
sh 'docker push devopshubg333/batch13:${BUILD_NUMBER}'
sh 'docker push narra18/niteeshyncicd:${BUILD_NUMBER}'


}
Expand All @@ -66,19 +66,19 @@ pipeline {
stage('Update Deployment File') {

environment {
GIT_REPO_NAME = "mindcircuit13"
GIT_USER_NAME = "devopstraininghub"
GIT_REPO_NAME = "mindcircuit13-AN"
GIT_USER_NAME = "narra18"
}

steps {
echo 'Update Deployment File'
withCredentials([string(credentialsId: 'githubtoken', variable: 'githubtoken')])
{
sh '''
git config user.email "gorekarmadhu@gmail.com"
git config user.name "Madhu"
git config user.email "niteesharra18@gmail.com"
git config user.name "narra18"
BUILD_NUMBER=${BUILD_NUMBER}
sed -i "s/batch13:.*/batch13:${BUILD_NUMBER}/g" deploymentfiles/deployment.yml
sed -i "s/niteeshyncicd:.*/niteeshyncicd:${BUILD_NUMBER}/g" deploymentfiles/deployment.yml
git add .

git commit -m "Update deployment image to version ${BUILD_NUMBER}"
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>

<groupId>com.example</groupId>
<artifactId>mindcircuitbatch13</artifactId>
<artifactId>niteeshyncicd</artifactId>
<version>2.246</version>
<packaging>war</packaging>

Expand Down
2 changes: 1 addition & 1 deletion src/main/webapp/index.jsp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<html>
<body>
<h1 style="color: green; font-size: 40px;" align="left">MIND CIRCUIT AWS DEVOPS TRAINING - We don't just train people ;; we COACH, MENTOR, and BUILD PEOPLE !! </h1>
<h1 style="color: rgb(30, 58, 24); font-size: 40px;" align="left">This is DevelopmenT EnvironmenT</h1>
</body>
</html>
3 changes: 3 additions & 0 deletions target/maven-archiver/pom.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
artifactId=niteeshyncicd
groupId=com.example
version=2.246
Binary file added target/niteeshyncicd-2.246.war
Binary file not shown.
7 changes: 7 additions & 0 deletions target/niteeshyncicd-2.246/WEB-INF/web.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<!DOCTYPE web-app PUBLIC
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd" >

<web-app>
<display-name>Archetype Created Web Application</display-name>
</web-app>
5 changes: 5 additions & 0 deletions target/niteeshyncicd-2.246/index.jsp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<html>
<body>
<h1 style="color: rgb(30, 58, 24); font-size: 40px;" align="left">This is DevelopmenT EnvironmenT</h1>
</body>
</html>