Skip to content
Open

kkk #224

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
94 commits
Select commit Hold shift + click to select a range
953fb57
v1
subramanyemm Jul 25, 2022
2cd2c48
Update helloworld
subramanyemm Jul 25, 2022
7cb3996
Create gvk
subramanyemm Jul 25, 2022
915046f
Merge pull request #1 from subramanyemm/google
subramanyemm Jul 25, 2022
5ccaadd
Update index.jsp
subramanyemm Aug 2, 2022
02fec76
Update index.jsp
subramanyemm Aug 2, 2022
a8c49c7
Update index.jsp
subramanyemm Aug 2, 2022
e70fe4a
Update index.jsp
subramanyemm Aug 2, 2022
3038b41
Update index.jsp
subramanyemm Aug 2, 2022
a866aab
Update index.jsp
subramanyemm Aug 6, 2022
841875e
Update index.jsp
subramanyemm Aug 8, 2022
f6b68a2
Update Jenkins-decnew
subramanyemm Aug 11, 2022
ec692df
Update index.jsp
subramanyemm Aug 11, 2022
9043049
Update index.jsp
subramanyemm Aug 11, 2022
1285fc0
Update index.jsp
subramanyemm Aug 11, 2022
841c453
Update index.jsp
subramanyemm Aug 11, 2022
8a7865d
Update Jenkins-decdemo
subramanyemm Aug 11, 2022
8e00008
Update Jenkins-decnew
subramanyemm Aug 11, 2022
d01d6aa
Update Jenkins-decnew
subramanyemm Aug 11, 2022
dbeb2ff
Update Jenkins-decnew
subramanyemm Aug 11, 2022
6e9e196
Update Jenkins-decnew
subramanyemm Aug 11, 2022
592b960
Update Jenkins-decnew
subramanyemm Aug 14, 2022
0a16373
Update Jenkins-decnew
subramanyemm Aug 14, 2022
387ad26
Update Jenkins-decnew
subramanyemm Aug 14, 2022
3e87d09
Update Jenkins-decnew
subramanyemm Aug 14, 2022
0576e0e
Update Jenkins-decnew
subramanyemm Aug 14, 2022
3fad6a8
Update Jenkins-decnew
subramanyemm Aug 14, 2022
8fda3c3
Update Jenkins-decnew
subramanyemm Aug 14, 2022
b8f395b
Update Jenkins-decnew
subramanyemm Aug 14, 2022
15997ff
Update Jenkins-decnew
subramanyemm Aug 14, 2022
bdd919f
Update Jenkins-decnew
subramanyemm Aug 14, 2022
918de6c
Update Jenkins-decnew
subramanyemm Aug 14, 2022
c5db91d
Update index.jsp
subramanyemm Aug 14, 2022
c71306a
Update index.jsp
subramanyemm Aug 14, 2022
a31203b
Update index.jsp
subramanyemm Aug 14, 2022
4e3a534
Update index.jsp
subramanyemm Aug 14, 2022
ffba5a5
Update index.jsp
subramanyemm Aug 14, 2022
34aac3d
Update index.jsp
subramanyemm Aug 14, 2022
e9553e7
Update Jenkins-sonar-nexus-tomcat
subramanyemm Aug 16, 2022
79f680e
Update Jenkins-sonar-nexus-tomcat
subramanyemm Aug 16, 2022
d2b95ea
Update pom.xml
subramanyemm Aug 16, 2022
7f86487
Update pom.xml
subramanyemm Aug 27, 2022
01c7fd8
Update pom.xml
subramanyemm Aug 27, 2022
c482daa
Update pom.xml
subramanyemm Aug 27, 2022
db1b32b
Update pom.xml
subramanyemm Aug 27, 2022
e3655a2
Update Jenkins-sonar-nexus-tomcat
subramanyemm Aug 27, 2022
cf9687c
Update Jenkins-sonar-nexus-tomcat
subramanyemm Aug 27, 2022
981be76
Update index.jsp
subramanyemm Aug 27, 2022
bd7fc69
Update index.jsp
subramanyemm Aug 27, 2022
f1d6a23
Update pom.xml
subramanyemm Aug 28, 2022
3922152
Update Jenkins-ansible
subramanyemm Aug 28, 2022
58cb55f
Update dev.in
subramanyemm Aug 28, 2022
c23a509
Update copy.yml
subramanyemm Aug 28, 2022
3a2a516
Update dev.in
subramanyemm Aug 28, 2022
85a3b2e
Update Jenkins-ansible
subramanyemm Aug 28, 2022
5467fa5
Update index.jsp
subramanyemm Aug 28, 2022
e09a00e
Update index.jsp
subramanyemm Aug 28, 2022
5b138c9
Update pom.xml
subramanyemm Aug 30, 2022
2fc3dbb
Update pom.xml
subramanyemm Sep 2, 2022
09ed742
Update Jenkins-docker
subramanyemm Sep 2, 2022
1c4b798
Update Jenkins-docker
subramanyemm Sep 2, 2022
c42e668
Update Jenkins-docker
subramanyemm Sep 2, 2022
d3bedf2
Update Jenkins-docker
subramanyemm Sep 2, 2022
3e0d98c
Update Jenkins-docker
subramanyemm Sep 2, 2022
0b09feb
Update Jenkins-docker
subramanyemm Sep 2, 2022
40ce657
Update Jenkins-docker
subramanyemm Sep 2, 2022
65b5143
Update Jenkins-docker
subramanyemm Sep 2, 2022
211093b
Update Jenkins-docker
subramanyemm Sep 2, 2022
7119fa1
Update Jenkins-docker
subramanyemm Sep 2, 2022
10dc0fb
Update Jenkins-docker
subramanyemm Sep 2, 2022
8f533f2
Update Jenkins-docker
subramanyemm Sep 2, 2022
17290e2
Update Jenkins-docker
subramanyemm Sep 2, 2022
ae8dcbd
Update Jenkins-docker
subramanyemm Sep 2, 2022
4909d8f
Update Jenkins-docker
subramanyemm Sep 2, 2022
79303e5
Update Jenkins-docker
subramanyemm Sep 2, 2022
d55791b
Update Jenkins-docker
subramanyemm Sep 2, 2022
6cffd7e
Update index.jsp
subramanyemm Sep 2, 2022
45190ff
Update Jenkins-docker
subramanyemm Sep 2, 2022
f5520d9
Update Jenkins-kube
subramanyemm Sep 5, 2022
076e526
Update Jenkins-kube
subramanyemm Sep 5, 2022
9232256
Update pom.xml
subramanyemm Sep 5, 2022
60471fc
Update pom.xml
subramanyemm Sep 5, 2022
64135f2
Update index.jsp
subramanyemm Sep 5, 2022
d1f5e66
Update index.jsp
subramanyemm Sep 5, 2022
6c655e0
Update index.jsp
subramanyemm Sep 5, 2022
9f88a41
Update index.jsp
subramanyemm Sep 5, 2022
903b348
Update springBoot.yml
subramanyemm Sep 5, 2022
2e7ebe7
Update index.jsp
subramanyemm Sep 5, 2022
10b6877
Update index.jsp
subramanyemm Sep 5, 2022
bccd4ab
Update Jenkins-docker
subramanyemm Sep 5, 2022
73d00b6
Update pom.xml
subramanyemm Sep 8, 2022
b916c73
T
subramanyam3 Dec 8, 2024
7c1ee33
l
subramanyam3 Dec 8, 2024
faa867f
Add tests for Calculator functionality
subramanyemm Oct 27, 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
4 changes: 2 additions & 2 deletions Jenkins-ansible
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ pipeline{
stages{
stage("Git Checkout"){
steps{
git credentialsId: 'javahome2', url: 'https://github.com/srinicloud87/myweb.git'
git credentialsId: 'javahome2', url: 'https://github.com/subramanyemm/myweb.git'
}
}
stage("Maven Build"){
Expand All @@ -31,7 +31,7 @@ pipeline{
],
credentialsId: 'nexus3',
groupId: 'in.javahome',
nexusUrl: '172.31.43.154:8081',
nexusUrl: '172.31.0.243:8081',
nexusVersion: 'nexus3',
protocol: 'http',
repository: 'sample-releases',
Expand Down
2 changes: 1 addition & 1 deletion Jenkins-decdemo
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ pipeline{
stages{
stage("GIT checkout"){
steps{
git credentialsId: 'javahome', url: 'https://github.com/srinivas1987devops/myweb.git'
git credentialsId: 'javahome', url: 'https://github.com/subramanyemm/myweb.git'

}
}
Expand Down
8 changes: 4 additions & 4 deletions Jenkins-decnew
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ pipeline{
stages{
stage("Git Checkout"){
steps{
git credentialsId: 'javahome2', url: 'https://github.com/srinicloud87/myweb.git'
git credentialsId: 'javahome2', url: 'https://github.com/subramanyemm/myweb.git'
}
}
stage("Maven Build"){
Expand All @@ -20,11 +20,11 @@ pipeline{
steps{
sshagent(['tomcat-new']) {
sh """
scp -o StrictHostKeyChecking=no target/myweb.war ec2-user@172.31.34.139:/home/ec2-user/apache-tomcat-9.0.64/webapps/
scp -o StrictHostKeyChecking=no target/myweb.war ec2-user@172.31.46.126:/home/ec2-user/apache-apache-tomcat-9.0.65/webapps/

ssh ec2-user@172.31.34.139 /home/ec2-user/apache-tomcat-9.0.64/bin/shutdown.sh
ssh ec2-user@172.31.46.126 /home/ec2-user/apache-tomcat-9.0.65/bin/shutdown.sh

ssh ec2-user@172.31.34.139 /home/ec2-user/apache-tomcat-9.0.64/bin/startup.sh
ssh ec2-user@172.31.46.126 /home/ec2-user/apache-tomcat-9.0.65/bin/startup.sh

"""
}
Expand Down
12 changes: 6 additions & 6 deletions Jenkins-docker
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ pipeline{
stages{
stage("Git Checkout"){
steps{
git credentialsId: 'javahome2', url: 'https://github.com/srinicloud87/myweb.git'
git credentialsId: 'javahome2', url: 'https://github.com/subramanyemm/myweb.git'
}
}
stage("Maven Build"){
Expand All @@ -31,7 +31,7 @@ pipeline{
],
credentialsId: 'nexus3',
groupId: 'in.javahome',
nexusUrl: '172.31.47.92:8081',
nexusUrl: '172.31.0.139:8081',
nexusVersion: 'nexus3',
protocol: 'http',
repository: 'sample-releases',
Expand All @@ -40,17 +40,17 @@ pipeline{
}
stage('Build Docker Image'){
steps{
sh 'docker build -t deepikac2021/spring-boot-mongo .'
sh 'docker build -t subramanyemm/spring-boot-mongo .'
sh 'docker build -t tomcat:${BUILD_NUMBER} .'
sh 'docker run -itd --name srini36 -p 2900:8080 tomcat:${BUILD_NUMBER}'
sh 'docker run -itd --name subbu48 -p 2300:8080 tomcat:${BUILD_NUMBER}'
}
}
stage('Push Docker Image'){
steps{
withCredentials([string(credentialsId: 'DOCKER_HUB_CREDENTIALS', variable: 'DOCKER_HUB_CREDENTIALS')]) {
sh "docker login -u deepikac2021 -p ${DOCKER_HUB_CREDENTIALS}"
sh "docker login -u subramanyemm -p ${DOCKER_HUB_CREDENTIALS}"
}
sh 'docker push deepikac2021/spring-boot-mongo'
sh 'docker push subramanyemm/spring-boot-mongo'
}
}

Expand Down
10 changes: 5 additions & 5 deletions Jenkins-kube
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ pipeline{
stages{
stage("Git Checkout"){
steps{
git credentialsId: 'javahome2', url: 'https://github.com/srinicloud87/myweb.git'
git credentialsId: 'javahome2', url: 'https://github.com/subramanyemm/myweb.git'
}
}
stage("Maven Build"){
Expand All @@ -31,7 +31,7 @@ pipeline{
],
credentialsId: 'nexus3',
groupId: 'in.javahome',
nexusUrl: '172.31.36.7:8081',
nexusUrl: '172.31.0.139.7:8081',
nexusVersion: 'nexus3',
protocol: 'http',
repository: 'sample-releases',
Expand All @@ -40,15 +40,15 @@ pipeline{
}
stage('Build Docker Image'){
steps{
sh 'docker build -t deepikac2021/spring-boot-mongo .'
sh 'docker build -t subramanyemm/spring-boot-mongo .'
}
}
stage('Push Docker Image'){
steps{
withCredentials([string(credentialsId: 'DOCKER_HUB_CREDENTIALS', variable: 'DOCKER_HUB_CREDENTIALS')]) {
sh "docker login -u deepikac2021 -p ${DOCKER_HUB_CREDENTIALS}"
sh "docker login -u subramanyemm -p ${DOCKER_HUB_CREDENTIALS}"
}
sh 'docker push deepikac2021/spring-boot-mongo'
sh 'docker push subramanyemm/spring-boot-mongo'
}
}
stage("Deploy To Kuberates Cluster"){
Expand Down
10 changes: 5 additions & 5 deletions Jenkins-sonar-nexus-tomcat
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ pipeline{
stages{
stage("Git Checkout"){
steps{
git credentialsId: 'javahome2', url: 'https://github.com/srinicloud87/myweb.git'
git credentialsId: 'javahome2', url: 'https://github.com/subramanyemm/myweb.git'
}
}
stage("Maven Build"){
Expand All @@ -31,7 +31,7 @@ pipeline{
],
credentialsId: 'nexus3',
groupId: 'in.javahome',
nexusUrl: '172.31.32.143:8081',
nexusUrl: '172.31.0.162:8081',
nexusVersion: 'nexus3',
protocol: 'http',
repository: 'sample-releases',
Expand All @@ -42,11 +42,11 @@ pipeline{
steps{
sshagent(['tomcat-new']) {
sh """
scp -o StrictHostKeyChecking=no target/myweb-8.2.0.war ec2-user@172.31.41.204:/home/ec2-user/apache-tomcat-9.0.64/webapps/
scp -o StrictHostKeyChecking=no target/myweb-8.2.0.war ec2-user@172.31.0.87:/home/ec2-user/apache-tomcat-9.0.65/webapps/

ssh ec2-user@172.31.41.204 /home/ec2-user/apache-tomcat-9.0.64/bin/shutdown.sh
ssh ec2-user@172.31.0.87 /home/ec2-user/apache-tomcat-9.0.65/bin/shutdown.sh

ssh ec2-user@172.31.41.204 /home/ec2-user/apache-tomcat-9.0.64/bin/startup.sh
ssh ec2-user@172.31.0.87 /home/ec2-user/apache-tomcat-9.0.65/bin/startup.sh

"""
}
Expand Down
2 changes: 1 addition & 1 deletion copy.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
- hosts: webservers
- hosts: 172.31.0.60
tasks:
- name: copy the file from local to remote
copy:
Expand Down
2 changes: 1 addition & 1 deletion dev.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[webservers]
172.31.34.215 ansible_user=ec2-user
172.31.0.60 ansible_user=ec2-user
Empty file added guru
Empty file.
1 change: 1 addition & 0 deletions gvk
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1g
1 change: 1 addition & 0 deletions helloworld
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
hbfdhkjvkjdf
Empty file added horry
Empty file.
Empty file added news
Empty file.
9 changes: 6 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@

<properties>
<docker.image.prefix>kammana</docker.image.prefix>
<sonar.host.url>http://3.113.3.89:9000/</sonar.host.url>
<sonar.host.url>http://54.248.60.97:9000/</sonar.host.url>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>

</properties>
<dependencies>
Expand All @@ -28,12 +31,12 @@
<distributionManagement>
<snapshotRepository>
<id>nexusRepo</id>
<url>http://13.231.238.140:8081/repository/sample-snapshots/</url>
<url>http://172.31.0.139:8081/repository/sample-snapshots/</url>
</snapshotRepository>

<repository>
<id>nexusRepo</id>
<url>http://13.231.238.140:8081/repository/sample-releases/</url>
<url>http://172.31.0.139:8081/repository/sample-releases/</url>
</repository>
</distributionManagement>

Expand Down
2 changes: 1 addition & 1 deletion springBoot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ spec:
app: springboot
spec:
containers:
- image: deepikac2021/spring-boot-mongo
- image: subramanyemm/spring-boot-mongo
name: springboot
ports:
- containerPort: 8080
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="center"> GANA TECH APP VERSION-25000</h1>
<h1 style="color: green; font-size: 40px;" align="center"> " PROJECT-8 DONE " sir </h1>
</body>
</html>
59 changes: 59 additions & 0 deletions src/test/java/in/javahome/myweb/controller/CalculatorTest.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@


package in.javahome.myweb.controller;

import junit.framework.Assert;
Expand All @@ -12,3 +14,60 @@ public void testMultiply(){
Assert.assertEquals(cal.multiply(10, 20), 200);
}
}