diff --git a/Jenkinsfile7AMNovBatch2022 b/Jenkinsfile7AMNovBatch2022 index e40817d597..a0f3d241e9 100644 --- a/Jenkinsfile7AMNovBatch2022 +++ b/Jenkinsfile7AMNovBatch2022 @@ -1,7 +1,7 @@ node{ properties([buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '5', daysToKeepStr: '', numToKeepStr: '5')), [$class: 'JobLocalConfiguration', changeReasonComment: ''], pipelineTriggers([pollSCM('* * * * *')])]) - + echo "The Job name is: ${env.JOB_NAME}" echo "The Nod ename is: ${env.NODE_NAME}" echo "The Build Number is: ${env.BUILD_NUMBER}" diff --git a/JenkinsfileAugust2024 b/JenkinsfileAugust2024 new file mode 100644 index 0000000000..6a211ec8de --- /dev/null +++ b/JenkinsfileAugust2024 @@ -0,0 +1,37 @@ +node{ + +def mavenHome = tool name: 'maven3.9.8' + +properties([buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '5', daysToKeepStr: '', numToKeepStr: '5')), pipelineTriggers([cron('* * * * *')])]) + +echo "Job name is ${env.JOB_NAME}" +echo "Build number is: ${env.BUILD_NUMBER}" +echo "The node name is: ${env.NODE_NAME}" +echo "The Job url is: ${env.JOB_URL}" + + + +stage('CheckoutCode'){ +git branch: 'development', credentialsId: 'f00f923e-acd7-4f0c-b416-c22bd29206b1', url: 'https://github.com/MithunTechnologiesDevOps/maven-web-application.git' +} + +stage('Build'){ +sh "$mavenHome/bin/mvn clean package" +} +/* +stage('ExecuteSonarQubeReport'){ +sh "$mavenHome/bin/mvn clean sonar:sonar" +} + +stage('UploadArtifactsIntoNexus'){ +sh "$mavenHome/bin/mvn clean deploy" +} + +stage('DeployAppIntoTomcat'){ +sshagent(['dc54ad51-dada-430b-bbd7-5460b56fcd05']) { +sh "scp -o StrictHostKeyChecking=no target/maven-web-application.war ec2-user@172.31.18.196:/opt/apache-tomcat-9.0.95/webapps/" +} +} +*/ + +} diff --git a/JenkinsfileJune2024Batch b/JenkinsfileJune2024Batch new file mode 100644 index 0000000000..fd7e8abbcc --- /dev/null +++ b/JenkinsfileJune2024Batch @@ -0,0 +1,34 @@ +node{ + +def mavenHome = tool name: 'maven3.9.8' + + +echo "The Job name is: ${env.JOB_NAME}" +echo "The node name is: ${env.NODE_NAME}" +echo "The Jenkins Home dir is: ${env.JENKINS_HOME}" + +stage('CheckOutCode'){ +git branch: 'development', credentialsId: '8c8f9770-b08f-44f2-be9d-45a77bb7e105', url: 'https://github.com/MithunTechnologiesDevOps/maven-web-application.git' +} + +stage('Build'){ +sh "${mavenHome}/bin/mvn clean package" +} +/* +stage('ExecuteSonarQubeReport'){ +sh "${mavenHome}/bin/mvn clean sonar:sonar" +} + +stage('UploadArtifactInotNexus'){ +sh "${mavenHome}/bin/mvn clean deploy" +} + +stage('DeployAppIntoTomcat'){ +sshagent(['3223338a-9541-406a-9044-6e5109e2ce9e']) { + sh "scp -o StrictHostKeyChecking=no target/maven-web-application.war ec2-user@172.31.28.104:/opt/apache-tomcat-9.0.91/webapps/" +} +} + +*/ + +} diff --git a/JenkinsfileMarch2024Batch b/JenkinsfileMarch2024Batch new file mode 100644 index 0000000000..4847dfe597 --- /dev/null +++ b/JenkinsfileMarch2024Batch @@ -0,0 +1,36 @@ +node{ + +def mavenHome = tool name: 'maven3.9.5' + +echo "The Job name is : ${env.JOB_NAME}" +echo "Jenkins Home dir is: ${env.JENKINS_HOME}" +echo "THe Jenkins node name is: ${env.NODE_NAME}" +echo "The Build number is: ${env.BUILD_NUMBER}" + + +properties([buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '5', daysToKeepStr: '', numToKeepStr: '5')), [$class: 'RebuildSettings', autoRebuild: false, rebuildDisabled: false], [$class: 'JobLocalConfiguration', changeReasonComment: ''], pipelineTriggers([pollSCM('* * * * *')])]) + +stage('CheckoutCode'){ +git branch: 'development', credentialsId: 'd6df2d94-c538-42c5-9f24-fe8f34e2d3ed', url: 'https://github.com/MithunTechnologiesDevOps/maven-web-application.git' +} + +stage('Build'){ +sh "${mavenHome}/bin/mvn clean package" +} +/* +stage('ExecuteSonarQubeReport'){ +sh "${mavenHome}/bin/mvn clean sonar:sonar" +} + +stage('UploadArtifactIntoNexus'){ +sh "${mavenHome}/bin/mvn clean deploy" +} + +stage('DeployAppIntoTomcat'){ +sshagent(['d6426027-80c3-4552-8996-88b0e796f475']) { + sh "scp -o StrictHostKeyChecking=no target/maven-web-application.war ec2-user@172.31.41.45:/opt/apache-tomcat-9.0.86/webapps/" +} +} +*/ + +} diff --git a/JenkinsfileMay2024 b/JenkinsfileMay2024 new file mode 100644 index 0000000000..0dfb1ed06b --- /dev/null +++ b/JenkinsfileMay2024 @@ -0,0 +1,36 @@ +node{ + +echo "Job name is: ${env.JOB_NAME}" +echo "Build Number is: ${env.BUILD_NUMBER}" +echo "Jenkins Home is: ${env.JENKINS_HOME}" +echo "Build Number is: ${env.BUILD_NUMBER}" + + +properties([buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '5', daysToKeepStr: '', numToKeepStr: '5')), [$class: 'JobLocalConfiguration', changeReasonComment: ''], pipelineTriggers([pollSCM('* * * * *')])]) + + def mavenHome = tool name: 'maven3.9.8' + +stage('CheckOutCode'){ +git branch: 'development', credentialsId: 'f52a7301-4cbc-4389-91fd-0e6ef69c493d', url: 'https://github.com/MithunTechnologiesDevOps/maven-web-application.git' +} + +stage('Build'){ +sh "${mavenHome}/bin/mvn clean package" +} +/* +stage('ExecuteSonarQubeReport'){ +sh "${mavenHome}/bin/mvn clean sonar:sonar" +} + +stage('UploadArtifactIntoNexus'){ +sh "${mavenHome}/bin/mvn clean deploy" +} + +stage('DeployAppIntoTomcat'){ +sshagent(['6c4f159b-13a1-403d-90c4-9957e4a42383']) { + sh "scp -o StrictHostKeyChecking=no target/maven-web-application.war ec2-user@172.31.2.201:/opt/apache-tomcat-9.0.89/webapps/" +} +} +*/ + +} diff --git a/JenkinsfileSep2024Batch b/JenkinsfileSep2024Batch new file mode 100644 index 0000000000..0db348e84d --- /dev/null +++ b/JenkinsfileSep2024Batch @@ -0,0 +1,36 @@ +node{ + +echo "The Job name is: ${env.JOB_NAME}" +echo "The Node name is: ${env.NODE_NAME}" +echo "The build number is: ${env.BUILD_NUMBER}" + +properties([buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '5', daysToKeepStr: '', numToKeepStr: '5')), pipelineTriggers([pollSCM('* * * * *')])]) + + +def mavenHome = tool name: 'maven3.9.8' + +stage('CheckOutCode'){ +git branch: 'development', credentialsId: '52d61b39-b2dc-4ce5-a7e6-b0033b6e4d2f', url: 'https://github.com/MithunTechnologiesDevOps/maven-web-application.git' +} + +stage('Build'){ +sh "${mavenHome}/bin/mvn clean package" +} + + /* +stage('ExecuteSonarqubeReport'){ +sh "${mavenHome}/bin/mvn clean sonar:sonar" +} + +stage('UploadArtifactsInotNexus'){ +sh "${mavenHome}/bin/mvn clean deploy" +} + +stage('DeployAppIntoTomcatServer'){ +sshagent(['b12eb970-18b1-4fb1-a861-7c04af376ccd']) { + sh "scp -o StrictHostKeyChecking=no target/maven-web-application.war ec2-user@172.31.2.185:/opt/apache-tomcat-9.0.96/webapps/" +} +} +*/ + +} diff --git a/pom.xml b/pom.xml index d832dea9c7..51e6defbd3 100644 --- a/pom.xml +++ b/pom.xml @@ -21,9 +21,8 @@ 5.1.2.RELEASE 4.11 1.2.17 - http://18.138.81.149:9000/ - admin - passw0rd + http://172.31.45.98:9000/ + squ_8b5bf1e9057b32ea49a542206eadec00089c43cf UTF-8 UTF-8 @@ -98,13 +97,13 @@ nexus Mithun Technologies Releases Nexus Repository - http://54.255.174.111:8081/repository/flipkart-release/ + http://172.31.37.134:8081/repository/canarabank-releases/ nexus Mithun Technologies Snapshot Nexus Repository - http://54.255.174.111:8081/repository/flipkart-snapshot/ + http://172.31.37.134:8081/repository/canarabank-snapshot/ diff --git a/src/main/webapp/jsps/home.jsp b/src/main/webapp/jsps/home.jsp index 2d563be969..c06b97442e 100644 --- a/src/main/webapp/jsps/home.jsp +++ b/src/main/webapp/jsps/home.jsp @@ -9,6 +9,7 @@ +

Welcome to Mithun Technologies Private Ltd. Best Place to upskill - New DevOps with AWS Batch will start on Nov 9th at 7.30 PM IST - WebHook Demo

Welcome to Mithun Technologies Private Ltd. Ph No: +91-9980923226, +91-9980923216 ,+91-9900012028,Bengaluru,Karnataka,India

Mithun Technologies- Very Good Training center for DevOps with AWS,Python & AWS Solution Architect & Terraform in Bangalore India.Teaching Real Time scnerios