Skip to content

firstpulme116 #55

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 4,208 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
4208 commits
Select commit Hold shift + click to select a range
936f4a8
Update index.jsp
srinicloud87 Oct 10, 2022
571447d
Update pom.xml
srinicloud87 Oct 10, 2022
eb445f7
Update pom.xml
srinicloud87 Oct 10, 2022
408f20e
Update index.jsp
srinicloud87 Oct 10, 2022
82043a7
Update Jenkins-sonar-nexus-tomcat
srinicloud87 Oct 10, 2022
d9051ce
Update Jenkins-sonar-nexus-tomcat
srinicloud87 Oct 10, 2022
7eb6600
Update index.jsp
srinicloud87 Oct 10, 2022
1b2f613
Update index.jsp
srinicloud87 Oct 10, 2022
0808b69
Update pom.xml
srinicloud87 Oct 12, 2022
0cb4e5e
Update pom.xml
srinicloud87 Oct 13, 2022
d2c3e36
Update pom.xml
srinicloud87 Oct 13, 2022
30871c5
Update pom.xml
srinicloud87 Oct 13, 2022
f714baf
Update pom.xml
srinicloud87 Oct 13, 2022
cd1d065
Update pom.xml
srinicloud87 Oct 17, 2022
e9a3605
Update index.jsp
srinicloud87 Oct 17, 2022
14d6199
Update pom.xml
srinicloud87 Oct 17, 2022
436898f
Update Jenkins-sonar-nexus-tomcat
srinicloud87 Oct 17, 2022
cbcce14
Update Jenkins-sonar-nexus-tomcat
srinicloud87 Oct 17, 2022
408496f
Update index.jsp
srinicloud87 Oct 17, 2022
43fe931
p1
srinicloud87 Oct 18, 2022
24c7c03
Update pom.xml
srinicloud87 Oct 18, 2022
e76b4be
Update pom.xml
srinicloud87 Oct 18, 2022
be6ddfb
Update dev.in
srinicloud87 Oct 18, 2022
3b2ffab
Update copy.yml
srinicloud87 Oct 18, 2022
f6991dd
Update Jenkins-ansible
srinicloud87 Oct 18, 2022
39a77cf
s1
srinicloud87 Oct 20, 2022
70f28a6
Create harsha
srinicloud87 Oct 20, 2022
b31355c
Create pooja2
srinicloud87 Oct 20, 2022
5252555
p2
srinicloud87 Oct 20, 2022
797a6e6
Add files via upload
srinicloud87 Oct 20, 2022
85b6d8c
Delete pooja2
srinicloud87 Oct 20, 2022
feeb081
s3
srinicloud87 Oct 20, 2022
fb4ccdf
Merge branch 'master' of https://github.com/srinicloud87/myweb
srinicloud87 Oct 20, 2022
88cdf7c
Update srini1
srinicloud87 Oct 20, 2022
5e90b17
Update srini1
srinicloud87 Oct 20, 2022
6b28ac6
Update srini1
srinicloud87 Oct 20, 2022
b587e7b
srini
srinicloud87 Oct 21, 2022
2dae89a
v1
srinicloud87 Oct 21, 2022
4b20b01
y
srinicloud87 Oct 21, 2022
b868acd
z1
srinicloud87 Oct 21, 2022
6ee5e6b
z2
srinicloud87 Oct 21, 2022
c63c2b5
Merge branch 'fet1' into dev1
srinicloud87 Oct 21, 2022
e9f4edb
z3
srinicloud87 Oct 21, 2022
db23f95
Merge branch 'dev1'
srinicloud87 Oct 21, 2022
4c0151f
z6
srinicloud87 Oct 21, 2022
1fc4aa4
Update pom.xml
srinicloud87 Oct 25, 2022
d5392c9
Update Jenkins-sonar-nexus-tomcat
srinicloud87 Oct 25, 2022
12c3494
Update Jenkins-docker
srinicloud87 Oct 25, 2022
f6d197e
Update Jenkins-docker
srinicloud87 Oct 25, 2022
23654ae
Update Jenkins-docker
srinicloud87 Oct 25, 2022
555c8dd
Update Jenkins-docker
srinicloud87 Oct 25, 2022
e71528a
Update Jenkins-docker
srinicloud87 Oct 25, 2022
c8dcc5b
Create neha
srinicloud87 Oct 26, 2022
21e354f
Merge pull request #47 from srinicloud87/fet1
srinicloud87 Oct 26, 2022
8923270
Merge pull request #48 from srinicloud87/dev1
srinicloud87 Oct 26, 2022
ba2b0c9
Create honey
srinicloud87 Oct 26, 2022
5722789
Merge pull request #49 from srinicloud87/fet1
srinicloud87 Oct 26, 2022
af2e01b
Merge pull request #50 from srinicloud87/dev1
srinicloud87 Oct 26, 2022
599da52
a2
srinicloud87 Oct 26, 2022
c0b84ff
Update pom.xml
srinicloud87 Oct 26, 2022
c6d8944
Update dev.in
srinicloud87 Oct 26, 2022
70d90f4
Update Jenkins-ansible
srinicloud87 Oct 26, 2022
689c980
x1
srinicloud87 Oct 28, 2022
b6b0809
j3
Oct 28, 2022
9499161
Create rajesh
srinicloud87 Oct 28, 2022
60208d1
r3
srinicloud87 Oct 28, 2022
127af93
Add files via upload
srinicloud87 Oct 28, 2022
5165a63
Delete arun-docker.txt
srinicloud87 Oct 28, 2022
610cb88
Update rajesh
srinicloud87 Oct 28, 2022
92f54f8
Update rajesh
srinicloud87 Oct 28, 2022
b64969b
Update rajesh
srinicloud87 Oct 28, 2022
c3155b8
Delete rajesh
srinicloud87 Oct 28, 2022
96f015f
m3
srinicloud87 Oct 29, 2022
004cb71
s3
srinicloud87 Oct 29, 2022
b30665c
s4
srinicloud87 Oct 29, 2022
6494b2d
v1
srinicloud87 Oct 29, 2022
fe744df
p1
srinicloud87 Oct 29, 2022
03f008c
sr2
srinicloud87 Oct 29, 2022
1eaebab
Merge branch 'fet2' into dev2
srinicloud87 Oct 29, 2022
874a65c
ss
srinicloud87 Oct 29, 2022
107f0d1
Merge branch 'dev2'
srinicloud87 Oct 29, 2022
19e42f4
z1
srinicloud87 Oct 29, 2022
10088fc
z2
srinicloud87 Oct 29, 2022
d5b4902
Merge branch 'fet2' into dev2
srinicloud87 Oct 29, 2022
aa823dd
z3
srinicloud87 Oct 29, 2022
6444b4c
Merge branch 'dev2'
srinicloud87 Oct 29, 2022
683902a
c1
srinicloud87 Oct 29, 2022
d29e2d0
Create krish1
srinicloud87 Oct 31, 2022
d5f1ffc
Merge pull request #51 from srinicloud87/fet2
srinicloud87 Oct 31, 2022
478016b
Merge pull request #52 from srinicloud87/dev2
srinicloud87 Oct 31, 2022
0c4ba1b
y1
srinicloud87 Oct 31, 2022
6da3fc8
Update index.jsp
srinicloud87 Nov 1, 2022
4a93c04
Update index.jsp
srinicloud87 Nov 1, 2022
11f01aa
Update pom.xml
srinicloud87 Nov 1, 2022
c6533fa
Update springBoot.yml
srinicloud87 Nov 1, 2022
0d4cb95
Update Jenkins-kube
srinicloud87 Nov 1, 2022
51a7971
Update Jenkins-kube
srinicloud87 Nov 1, 2022
e7e0488
Merge branch 'master' of https://github.com/srinicloud87/myweb
srinicloud87 Nov 2, 2022
66f1f34
Update pom.xml
srinicloud87 Nov 3, 2022
4b92fee
Update Jenkins-docker
srinicloud87 Nov 3, 2022
2bc1606
Update index.jsp
srinicloud87 Nov 4, 2022
b40a735
Update index.jsp
srinicloud87 Nov 7, 2022
7ab61b9
Update Jenkins-decnew
srinicloud87 Nov 8, 2022
46ac741
Update index.jsp
srinicloud87 Nov 8, 2022
45db74e
Update index.jsp
srinicloud87 Nov 8, 2022
a619ec9
Update index.jsp
srinicloud87 Nov 8, 2022
5468e8c
Update pom.xml
srinicloud87 Nov 9, 2022
22310c6
Update pom.xml
srinicloud87 Nov 9, 2022
8a6926e
Update Jenkins-kube
srinicloud87 Nov 9, 2022
cf638b2
Update pom.xml
srinicloud87 Nov 10, 2022
e7dcecf
Update pom.xml
srinicloud87 Nov 10, 2022
0054048
Update pom.xml
srinicloud87 Nov 10, 2022
a72ff48
Update pom.xml
srinicloud87 Nov 10, 2022
dfc469e
Update pom.xml
srinicloud87 Nov 11, 2022
9772e36
Update index.jsp
srinicloud87 Nov 11, 2022
034797a
Update Jenkins-sonar-nexus-tomcat
srinicloud87 Nov 11, 2022
5675dce
Update Jenkins-sonar-nexus-tomcat
srinicloud87 Nov 11, 2022
147a64e
Update index.jsp
srinicloud87 Nov 11, 2022
c9ec3f4
Update index.jsp
srinicloud87 Nov 11, 2022
6f0e8d1
Update index.jsp
srinicloud87 Nov 11, 2022
9664976
Update Jenkins-decnew
srinicloud87 Nov 15, 2022
2806e8a
Update index.jsp
srinicloud87 Nov 15, 2022
96bcd4e
Update pom.xml
srinicloud87 Nov 16, 2022
c594204
Update pom.xml
srinicloud87 Nov 17, 2022
52137bd
Update pom.xml
srinicloud87 Nov 17, 2022
5acb50f
Update pom.xml
srinicloud87 Nov 17, 2022
1650ca2
Update pom.xml
srinicloud87 Nov 17, 2022
93e24e6
Update pom.xml
srinicloud87 Nov 18, 2022
ab57f0f
Update pom.xml
srinicloud87 Nov 18, 2022
f7cf346
Update index.jsp
srinicloud87 Nov 18, 2022
3b02e43
Update Jenkins-sonar-nexus-tomcat
srinicloud87 Nov 18, 2022
2482166
Update Jenkins-sonar-nexus-tomcat
srinicloud87 Nov 18, 2022
97f97fb
Update index.jsp
srinicloud87 Nov 18, 2022
bd4fc52
Update index.jsp
srinicloud87 Nov 18, 2022
237a062
Delete apple
srinicloud87 Nov 22, 2022
06a80a2
Delete ch3
srinicloud87 Nov 22, 2022
2766959
Delete elb123.txt
srinicloud87 Nov 22, 2022
c8dd0a7
Delete harsha
srinicloud87 Nov 22, 2022
e14e2c8
Delete honey
srinicloud87 Nov 22, 2022
9d2f86f
Delete z555
srinicloud87 Nov 22, 2022
87d0ade
Delete z5
srinicloud87 Nov 22, 2022
b9afa57
Delete z444
srinicloud87 Nov 22, 2022
2aa9443
Delete z333
srinicloud87 Nov 22, 2022
f3f5cff
Delete z33
srinicloud87 Nov 22, 2022
04645f4
Delete z22
srinicloud87 Nov 22, 2022
e805e1e
Delete z11
srinicloud87 Nov 22, 2022
925a926
Delete yogi
srinicloud87 Nov 22, 2022
9e090d5
Delete y11
srinicloud87 Nov 22, 2022
40aefbf
Delete xerox
srinicloud87 Nov 22, 2022
4e9c654
Delete x11
srinicloud87 Nov 22, 2022
a97a0b3
Delete vamsi1
srinicloud87 Nov 22, 2022
11cb441
Delete srini1
srinicloud87 Nov 22, 2022
48d8c9e
Delete sr2
srinicloud87 Nov 22, 2022
c093576
Delete sr1
srinicloud87 Nov 22, 2022
a749b24
Delete pr1
srinicloud87 Nov 22, 2022
a674a1a
Delete pooja
srinicloud87 Nov 22, 2022
048e288
Delete neha
srinicloud87 Nov 22, 2022
bd36e56
Delete moin
srinicloud87 Nov 22, 2022
5b9aca6
Delete jayasree
srinicloud87 Nov 22, 2022
eb6fbe0
Delete krish1
srinicloud87 Nov 22, 2022
a6cecac
h3
srinicloud87 Nov 23, 2022
a51633b
h2
srinicloud87 Nov 23, 2022
eac284a
Update hari
srinicloud87 Nov 23, 2022
d9927ba
Create ansible
srinicloud87 Nov 23, 2022
ce35b6e
Add files via upload
srinicloud87 Nov 23, 2022
1324333
Update hari
srinicloud87 Nov 23, 2022
c8e5709
m2
srinicloud87 Nov 24, 2022
332eaa5
j2
srinicloud87 Nov 24, 2022
3ac4c8c
f3
srinicloud87 Nov 24, 2022
d809b02
x11
srinicloud87 Nov 24, 2022
d1084aa
y11
srinicloud87 Nov 24, 2022
7350a48
Merge branch 'fet11' into dev11
srinicloud87 Nov 24, 2022
b04e6bd
z11
srinicloud87 Nov 24, 2022
8b2c2d4
Merge branch 'dev11'
srinicloud87 Nov 24, 2022
13e2605
Update dev.in
srinicloud87 Nov 28, 2022
142a8de
Update copy.yml
srinicloud87 Nov 28, 2022
2d892b3
Update pom.xml
srinicloud87 Nov 28, 2022
ef84ee7
Update Jenkins-ansible
srinicloud87 Nov 28, 2022
e3cef27
Update index.jsp
srinicloud87 Nov 28, 2022
0d7bea1
c1
srinicloud87 Nov 28, 2022
ed67606
Merge branch 'master' of https://github.com/srinicloud87/myweb
srinicloud87 Nov 28, 2022
2040324
Create srini007
srinicloud87 Nov 28, 2022
096e8c2
Merge pull request #60 from srinicloud87/fet11
srinicloud87 Nov 28, 2022
d97a088
Merge pull request #61 from srinicloud87/dev11
srinicloud87 Nov 28, 2022
7a9a970
Update index.jsp
srinicloud87 Dec 1, 2022
3462e18
Update Jenkins-docker
srinicloud87 Dec 2, 2022
c6ba5dd
Update Jenkins-kube
srinicloud87 Dec 2, 2022
cf2045b
Update pom.xml
srinicloud87 Dec 2, 2022
4ab5fc9
Update Jenkins-docker
srinicloud87 Dec 2, 2022
c1cfddd
Update index.jsp
srinicloud87 Dec 6, 2022
d1cbc05
Update index.jsp
srinicloud87 Dec 6, 2022
6aaec8a
Update pom.xml
srinicloud87 Dec 7, 2022
32219bd
Update springBoot.yml
srinicloud87 Dec 7, 2022
c86f154
Update Jenkins-docker
srinicloud87 Dec 7, 2022
d1bec9c
Update Jenkins-kube
srinicloud87 Dec 7, 2022
3ce356e
s2
srinicloud87 Dec 8, 2022
c881867
Update index.jsp
srinicloud87 Dec 9, 2022
a1f6820
Update Jenkins-decnew
srinicloud87 Dec 12, 2022
dabf1a5
Update index.jsp
srinicloud87 Dec 12, 2022
0f34432
teja
srinicloud87 Dec 12, 2022
64a33f2
Merge branch 'master' of https://github.com/srinicloud87/myweb
srinicloud87 Dec 12, 2022
c0e9372
a3
srinicloud87 Dec 12, 2022
e494d12
Update neelima1
srinicloud87 Dec 12, 2022
fbebce4
n2
srinicloud87 Dec 12, 2022
bebb9e3
Create manju
srinicloud87 Dec 12, 2022
429c4b1
Add files via upload
srinicloud87 Dec 12, 2022
43042dd
Update anirudh
srinicloud87 Dec 12, 2022
9e623a4
Update anirudh
srinicloud87 Dec 12, 2022
2a44540
abcd
srinicloud87 Dec 12, 2022
f330950
Update pom.xml
srinicloud87 Dec 13, 2022
a50a9ee
d1
srinicloud87 Dec 13, 2022
c28b7d8
Merge branch 'master' of https://github.com/srinicloud87/myweb
srinicloud87 Dec 13, 2022
b1d76a2
nm
srinicloud87 Dec 13, 2022
2aabfc5
123
srinicloud87 Dec 13, 2022
0e7d1e4
22
srinicloud87 Dec 13, 2022
e97811f
33
srinicloud87 Dec 13, 2022
0153853
Merge branch 'fet1' into dev1
srinicloud87 Dec 13, 2022
4ae434b
44
srinicloud87 Dec 13, 2022
0961353
Merge branch 'dev1'
srinicloud87 Dec 13, 2022
3867b99
55
srinicloud87 Dec 13, 2022
cb7c89e
Create srinipr1
srinicloud87 Dec 14, 2022
20f36e5
Merge pull request #64 from srinicloud87/fet1
srinicloud87 Dec 14, 2022
134799f
Merge pull request #65 from srinicloud87/dev1
srinicloud87 Dec 14, 2022
717fba1
Update pom.xml
srinicloud87 Dec 16, 2022
d70ec0e
Update pom.xml
srinicloud87 Dec 16, 2022
95aa626
Update pom.xml
srinicloud87 Dec 16, 2022
6fed9f3
Update pom.xml
srinicloud87 Dec 16, 2022
c30a0a6
Update pom.xml
srinicloud87 Dec 17, 2022
451e22e
Update index.jsp
srinicloud87 Dec 17, 2022
4c1a09d
Update Jenkins-sonar-nexus-tomcat
srinicloud87 Dec 17, 2022
bb7d9ce
Update index.jsp
srinicloud87 Dec 17, 2022
2bcdb88
devops
Dec 21, 2022
90d008c
true
Dec 21, 2022
c6df9d7
Add files via upload
janakiramjob Dec 21, 2022
4af0c0c
Update zfai
janakiramjob Dec 21, 2022
e7d0dc9
Update zfai
janakiramjob Dec 21, 2022
f923f28
do
Dec 22, 2022
4442121
Update todayclassnotdone
janakiramjob Dec 22, 2022
93abf54
Create endi ra e thala nopi
janakiramjob Dec 22, 2022
ce8d447
z4
Dec 23, 2022
97b5db9
Merge branch 'master' of https://github.com/janakiramjob/myweb
Dec 24, 2022
574fe88
s1
Dec 24, 2022
58383d9
Merge branch 'fet1'
Dec 24, 2022
5246b8b
j5
Dec 26, 2022
47cc712
s6
Dec 27, 2022
0e84fb4
b9
Dec 27, 2022
cd26408
Update smell
janakiramjob Dec 27, 2022
0bc40bc
n6
Dec 27, 2022
e63277c
m5
Dec 27, 2022
35757a4
f5
Dec 27, 2022
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
6 changes: 6 additions & 0 deletions 123Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM tomcat:8.0.20-jre8
# Dummy text to test
COPY target/myweb*.war /usr/local/tomcat/webapps/myweb.war

# Git webhook trigger demo
# TO test github push trigger
2 changes: 0 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,3 @@ FROM tomcat:8.0.20-jre8
# Dummy text to test
COPY target/myweb*.war /usr/local/tomcat/webapps/myweb.war

# Git webhook trigger demo
# TO test github push trigger
Empty file added Douts.txt
Empty file.
Empty file added Janakiram
Empty file.
48 changes: 48 additions & 0 deletions Jenkins-ansible
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
pipeline{
agent any
tools {
maven 'Maven-3.6.1'
}

environment{
PATH = "/opt/maven3/bin:$PATH"
}
stages{
stage("Git Checkout"){
steps{
git credentialsId: 'javahome2', url: 'https://github.com/srinicloud87/myweb.git'
}
}
stage("Maven Build"){
steps{
sh "mvn clean sonar:sonar package"

}
}
stage('Upload War To Nexus'){
steps{
nexusArtifactUploader artifacts: [
[
artifactId: 'myweb',
classifier: '',
file: "target/myweb-8.2.0.war",
type: 'war'
]
],
credentialsId: 'nexus3',
groupId: 'in.javahome',
nexusUrl: '172.31.8.173:8081',
nexusVersion: 'nexus3',
protocol: 'http',
repository: 'sample-releases',
version: '8.2.0'
}
}
stage("Execute Ansible"){
steps{
ansiblePlaybook credentialsId: 'private-key', disableHostKeyChecking: true, installation: 'ansible2', inventory: 'dev.in', playbook: 'copy.yml'
}

}
}
}
46 changes: 46 additions & 0 deletions Jenkins-appnew
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
pipeline{
agent any
stages{
stage("Git Checkout"){
steps{
git credentialsId: 'javahome2', url: 'https://github.com/srinivas1987devops/myweb.git'
}

stages{
stage('Maven Build'){
steps{
echo "${getLatestCommitId()}"
sh "mvn clean package"
}
}

stage('Docker Build Image'){
steps{
sh "docker build . -t prashanthi2021/qa:${getLatestCommitId()}"
}
}

stage('push to docker hub'){
steps{
withCredentials([string(credentialsId: 'docker-hub', variable: 'dockerPwd')]) {
sh "docker login -u prashanthi2021 -p ${dockerPwd}"
sh "docker push prashanthi2021/qa:${getLatestCommitId()}"
}

}
}

stage('dev-deploy'){
steps{
sshagent(['docker-dev']) {
sh "ssh -o StrictHostKeyChecking=no [email protected] docker rm -f mywebapp"
sh "ssh -o StrictHostKeyChecking=no [email protected] docker run -d -p 8080:8080 --name mywebapp prashanthi2021/qa:${getLatestCommitId()}"
}
}
}
}
}
}
}


17 changes: 17 additions & 0 deletions Jenkins-decdemo
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
pipeline{
agent any
stages{
stage("GIT checkout"){
steps{
git credentialsId: 'javahome', url: 'https://github.com/srinivas1987devops/myweb.git'

}
}
stage("Maven Build"){
steps{
sh "mvn clean package"
sh "mv target/*.war target/myweb.war"
}
}
}
}
35 changes: 35 additions & 0 deletions Jenkins-decnew
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
pipeline{
agent any

environment{
PATH = "/opt/maven3/bin:$PATH"
}
stages{
stage("Git Checkout"){
steps{
git credentialsId: 'javahome2', url: 'https://github.com/srinicloud87/myweb.git'
}
}
stage("Maven Build"){
steps{
sh "mvn clean package"
sh "mv target/*.war target/myweb.war"
}
}
stage("deploy-dev"){
steps{
sshagent(['tomcat-new']) {
sh """
scp -o StrictHostKeyChecking=no target/myweb.war [email protected]:/home/ec2-user/apache-tomcat-9.0.70/webapps/

ssh [email protected] /home/ec2-user/apache-tomcat-9.0.70/bin/shutdown.sh

ssh [email protected] /home/ec2-user/apache-tomcat-9.0.70/bin/startup.sh

"""
}

}
}
}
}
59 changes: 59 additions & 0 deletions Jenkins-docker
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
pipeline{
agent any
tools {
maven 'Maven-3.6.1'
}

environment{
PATH = "/opt/maven3/bin:$PATH"
}
stages{
stage("Git Checkout"){
steps{
git credentialsId: 'javahome2', url: 'https://github.com/srinicloud87/myweb.git'
}
}
stage("Maven Build"){
steps{
sh "mvn clean sonar:sonar package"

}
}
stage('Upload War To Nexus'){
steps{
nexusArtifactUploader artifacts: [
[
artifactId: 'myweb',
classifier: '',
file: "target/myweb-8.2.0.war",
type: 'war'
]
],
credentialsId: 'nexus3',
groupId: 'in.javahome',
nexusUrl: '172.31.13.136:8081',
nexusVersion: 'nexus3',
protocol: 'http',
repository: 'sample-releases',
version: '8.2.0'
}
}
stage('Build Docker Image'){
steps{
sh 'docker build -t srinidockerhub87/spring-boot-mongo .'
sh 'docker build -t tomcat:${BUILD_NUMBER} .'
sh 'docker run -itd --name srini26 -p 3900:8080 tomcat:${BUILD_NUMBER}'
}
}
stage('Push Docker Image'){
steps{
withCredentials([string(credentialsId: 'DOCKER_HUB_CREDENTIALS', variable: 'DOCKER_HUB_CREDENTIALS')]) {
sh "docker login -u srinidockerhub87 -p ${DOCKER_HUB_CREDENTIALS}"
}
sh 'docker push srinidockerhub87/spring-boot-mongo'
}
}


}
}
65 changes: 65 additions & 0 deletions Jenkins-kube
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
pipeline{
agent any
tools {
maven 'Maven-3.6.1'
}

environment{
PATH = "/opt/maven3/bin:$PATH"
}
stages{
stage("Git Checkout"){
steps{
git credentialsId: 'javahome2', url: 'https://github.com/srinicloud87/myweb.git'
}
}
stage("Maven Build"){
steps{
sh "mvn clean sonar:sonar package"

}
}
stage('Upload War To Nexus'){
steps{
nexusArtifactUploader artifacts: [
[
artifactId: 'myweb',
classifier: '',
file: "target/myweb-8.2.0.war",
type: 'war'
]
],
credentialsId: 'nexus3',
groupId: 'in.javahome',
nexusUrl: '172.31.13.136:8081',
nexusVersion: 'nexus3',
protocol: 'http',
repository: 'sample-releases',
version: '8.2.0'
}
}
stage('Build Docker Image'){
steps{
sh 'docker build -t srinidockerhub87/spring-boot-mongo .'
}
}
stage('Push Docker Image'){
steps{
withCredentials([string(credentialsId: 'DOCKER_HUB_CREDENTIALS', variable: 'DOCKER_HUB_CREDENTIALS')]) {
sh "docker login -u srinidockerhub87 -p ${DOCKER_HUB_CREDENTIALS}"
}
sh 'docker push srinidockerhub87/spring-boot-mongo'
}
}
stage("Deploy To Kuberates Cluster"){
steps{
kubernetesDeploy(
configs: 'springBoot.yml',
kubeconfigId: 'KUBERNETES_CLUSTER_CONFIG',
enableConfigSubstitution: true
)
}
}

}
}
57 changes: 57 additions & 0 deletions Jenkins-sonar-nexus-tomcat
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
pipeline{
agent any
tools {
maven 'Maven-3.6.1'
}

environment{
PATH = "/opt/maven3/bin:$PATH"
}
stages{
stage("Git Checkout"){
steps{
git credentialsId: 'javahome2', url: 'https://github.com/srinicloud87/myweb.git'
}
}
stage("Maven Build"){
steps{
sh "mvn clean sonar:sonar package"

}
}
stage('Upload War To Nexus'){
steps{
nexusArtifactUploader artifacts: [
[
artifactId: 'myweb',
classifier: '',
file: "target/myweb-8.2.0.war",
type: 'war'
]
],
credentialsId: 'nexus3',
groupId: 'in.javahome',
nexusUrl: '172.31.15.198:8081',
nexusVersion: 'nexus3',
protocol: 'http',
repository: 'sample-releases',
version: '8.2.0'
}
}
stage("deploy-dev"){
steps{
sshagent(['tomcat-new']) {
sh """
scp -o StrictHostKeyChecking=no target/myweb-8.2.0.war [email protected]:/home/ec2-user/apache-tomcat-9.0.70/webapps/

ssh [email protected] /home/ec2-user/apache-tomcat-9.0.70/bin/shutdown.sh

ssh [email protected] /home/ec2-user/apache-tomcat-9.0.70/bin/startup.sh

"""
}

}
}
}
}
41 changes: 41 additions & 0 deletions Jenkins-terraform
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
pipeline {

parameters {
string(name: 'environment', defaultValue: 'prod', description: 'Workspace/Environment file to use for deployment')
string(name: 'region', defaultValue: 'ap-northeast-1', description: 'Workspace/region file to use for deployment')


}
agent any
stages {
stage('Download terraform code from Gihub') {
steps {
git credentialsId: 'javahome2', url: 'https://github.com/srinivas1987devops/myweb.git'
}
}
stage('Terraform Ininitialization') {
steps {
sh """
cd /var/lib/jenkins/workspace/terraform
terraform init -reconfigure
"""
}
}
stage('Terraform Plan') {
steps {
sh """
cd /var/lib/jenkins/workspace/terraform
terraform plan -out=plan.${BUILD_NUMBER} -var profile=${params.environment} -var region=${params.region}
"""
}
}
stage('Terraform Apply') {
steps {
sh """
cd /var/lib/jenkins/workspace/terraform
terraform apply plan.${BUILD_NUMBER}
"""
}
}
}
}
3 changes: 3 additions & 0 deletions Jenkinsfile007
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

pipeline{

Empty file added a
Empty file.
Loading