diff --git a/Jenkins-ansible b/Jenkins-ansible index a7bf749c58..4359118f18 100644 --- a/Jenkins-ansible +++ b/Jenkins-ansible @@ -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"){ @@ -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', diff --git a/Jenkins-decdemo b/Jenkins-decdemo index 032870a253..9e8e115ea2 100644 --- a/Jenkins-decdemo +++ b/Jenkins-decdemo @@ -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' } } diff --git a/Jenkins-decnew b/Jenkins-decnew index 4aad4f6e4b..ba0ca5cd2a 100644 --- a/Jenkins-decnew +++ b/Jenkins-decnew @@ -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"){ @@ -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 """ } diff --git a/Jenkins-docker b/Jenkins-docker index 56c0209068..6344a77dc6 100644 --- a/Jenkins-docker +++ b/Jenkins-docker @@ -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"){ @@ -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', @@ -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' } } diff --git a/Jenkins-kube b/Jenkins-kube index ff00af1764..e7f8d32e5b 100644 --- a/Jenkins-kube +++ b/Jenkins-kube @@ -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"){ @@ -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', @@ -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"){ diff --git a/Jenkins-sonar-nexus-tomcat b/Jenkins-sonar-nexus-tomcat index 2dc75c5e17..8e36c54bb5 100644 --- a/Jenkins-sonar-nexus-tomcat +++ b/Jenkins-sonar-nexus-tomcat @@ -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"){ @@ -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', @@ -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 """ } diff --git a/copy.yml b/copy.yml index c9c0b6ab10..f248524efe 100644 --- a/copy.yml +++ b/copy.yml @@ -1,5 +1,5 @@ --- - - hosts: webservers + - hosts: 172.31.0.60 tasks: - name: copy the file from local to remote copy: diff --git a/dev.in b/dev.in index 8542c4a8f0..7fc70a4447 100644 --- a/dev.in +++ b/dev.in @@ -1,2 +1,2 @@ [webservers] -172.31.34.215 ansible_user=ec2-user +172.31.0.60 ansible_user=ec2-user diff --git a/guru b/guru new file mode 100644 index 0000000000..e69de29bb2 diff --git a/gvk b/gvk new file mode 100644 index 0000000000..095735107f --- /dev/null +++ b/gvk @@ -0,0 +1 @@ +h1g diff --git a/helloworld b/helloworld new file mode 100644 index 0000000000..cfba32cdeb --- /dev/null +++ b/helloworld @@ -0,0 +1 @@ +hbfdhkjvkjdf diff --git a/horry b/horry new file mode 100644 index 0000000000..e69de29bb2 diff --git a/news b/news new file mode 100644 index 0000000000..e69de29bb2 diff --git a/pom.xml b/pom.xml index 13a11e9579..30735a5cba 100644 --- a/pom.xml +++ b/pom.xml @@ -10,7 +10,10 @@ kammana - http://3.113.3.89:9000/ + http://54.248.60.97:9000/ + UTF-8 + 1.7 + 1.7 @@ -28,12 +31,12 @@ nexusRepo - http://13.231.238.140:8081/repository/sample-snapshots/ + http://172.31.0.139:8081/repository/sample-snapshots/ nexusRepo - http://13.231.238.140:8081/repository/sample-releases/ + http://172.31.0.139:8081/repository/sample-releases/ diff --git a/springBoot.yml b/springBoot.yml index 8eec0608d5..9cc27b65fb 100644 --- a/springBoot.yml +++ b/springBoot.yml @@ -13,7 +13,7 @@ spec: app: springboot spec: containers: - - image: deepikac2021/spring-boot-mongo + - image: subramanyemm/spring-boot-mongo name: springboot ports: - containerPort: 8080 diff --git a/src/main/webapp/index.jsp b/src/main/webapp/index.jsp index 97f2cc900e..167c86921c 100644 --- a/src/main/webapp/index.jsp +++ b/src/main/webapp/index.jsp @@ -1,5 +1,5 @@ -

GANA TECH APP VERSION-25000

+

" PROJECT-8 DONE " sir

diff --git a/src/test/java/in/javahome/myweb/controller/CalculatorTest.java b/src/test/java/in/javahome/myweb/controller/CalculatorTest.java index e815aade1f..4240272df4 100644 --- a/src/test/java/in/javahome/myweb/controller/CalculatorTest.java +++ b/src/test/java/in/javahome/myweb/controller/CalculatorTest.java @@ -1,3 +1,5 @@ + + package in.javahome.myweb.controller; import junit.framework.Assert; @@ -12,3 +14,60 @@ public void testMultiply(){ Assert.assertEquals(cal.multiply(10, 20), 200); } } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +