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/JenkinsfileDec2025batch b/JenkinsfileDec2025batch new file mode 100644 index 0000000000..3f67b627b2 --- /dev/null +++ b/JenkinsfileDec2025batch @@ -0,0 +1,37 @@ +node{ + +properties([buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '5', daysToKeepStr: '', numToKeepStr: '5')), pipelineTriggers([pollSCM('* * * * *')])]) + +echo "Job name is: ${env.JOB_NAME}" +echo "Build number is: ${env.BUILD_NUMBER}" +echo "Node name is: ${env.NODE_NAME}" +echo "Jenkins Home dir is: ${env.JENKINS_HOME}" + + +def mavenHome = tool name: 'maven3.9.8' + +stage('CheckoutCode'){ +git branch: 'development', credentialsId: '5a7d3f67-cabf-45fb-9f68-335ece9085b4', 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('UploadArtifcaysIntoNexus'){ +sh "${mavenHome}/bin/mvn clean deploy" +} + +stage('DeployAppInTomcatServer'){ +sshagent(['8b9a05a7-5c2c-4f39-b63d-15178827b5d6']) { + sh "scp -o StrictHostKeyChecking=no target/maven-web-application.war ec2-user@172.31.7.83:/opt/apache-tomcat-9.0.98/webapps/" +} +} +*/ + +} diff --git a/JenkinsfileFeb2025Batch b/JenkinsfileFeb2025Batch new file mode 100644 index 0000000000..f29c31c8e3 --- /dev/null +++ b/JenkinsfileFeb2025Batch @@ -0,0 +1,78 @@ +node{ + +echo "The Build number is: ${env.BUILD_NUMBER}" +echo "The Job name is: ${env.JOB_NAME}" +echo "The Node is name is: ${env.NODE_NAME}" +echo "The workspace is: ${env.WORKSPACE}" +echo "The Jenkins Home directory is: ${env.JENKINS_HOME}" +echo "The Jenkins url is: ${env.JENKINS_URL}" + + +def mavenHome = tool name: 'maven3.9.9' + +properties([buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '5', daysToKeepStr: '', numToKeepStr: '5')), pipelineTriggers([pollSCM('* * * * *')])]) + +try{ +stage('CheckOutCode'){ +sendSlackNotifications('STARTED') +git branch: 'development', credentialsId: '9e2aca48-edfd-4dd9-acc9-b352ab51a722', 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('DeployAppIntoTomcatServer'){ +sshagent(['bfb6d86a-3ded-460b-8b79-f23379a48bb9']) { +sh "scp -o StrictHostKeyChecking=no target/maven-web-application.war ec2-user@172.31.4.134:/opt/apache-tomcat-9.0.102/webapps/" +} +} +*/ +} +catch(e){ + currentBuild.result = "FAILED" + throw e +} +finally{ + sendSlackNotifications(currentBuild.result) +} + +}//node closing + +def sendSlackNotifications(String buildStatus = 'STARTED') { + // build status of null means successful + buildStatus = buildStatus ?: 'SUCCESS' + + // Default values + def colorName = 'RED' + def colorCode = '#FF0000' + def subject = "${buildStatus}: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]'" + def summary = "${subject} (${env.BUILD_URL})" + + // Override default values based on build status + if (buildStatus == 'STARTED') { + colorName = 'YELLOW' + colorCode = '#FFFF00' + } else if (buildStatus == 'SUCCESS') { + colorName = 'GREEN' + colorCode = '#00FF00' + } else { + colorName = 'RED' + colorCode = '#FF0000' + } + + // Send notifications + slackSend (color: colorCode, message: summary, channel: '#icicibankteam') +} + + + 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/JenkinsfileMarch6Am2025 b/JenkinsfileMarch6Am2025 new file mode 100644 index 0000000000..188fabe194 --- /dev/null +++ b/JenkinsfileMarch6Am2025 @@ -0,0 +1,37 @@ +node{ + +properties([buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '5', daysToKeepStr: '', numToKeepStr: '5')), pipelineTriggers([pollSCM('* * * * *')])]) + + +echo "The Job name is: ${env.JOB_NAME}" +echo "The Build number is: ${env.BUILD_NUMBER}" +echo "The node name is: ${env.NODE_NAME}" +echo "The Jenkins URL is: ${env.JENKINS_URL}" +echo "The Jenkins home is : ${env.JENKINS_HOME}" + +def mavenHome = tool name: 'maven3.9.9' + +stage('CheckOutCode'){ +git branch: 'development', credentialsId: '2a0195f8-1c2e-4585-a6a6-86bb4c223159', url: 'https://github.com/MithunTechnologiesDevOps/maven-web-application.git' +} + +stage('Build'){ +sh "${mavenHome}/bin/mvn clean package" +} +/* +stage('SonarQubeReport'){ +sh "${mavenHome}/bin/mvn clean sonar:sonar" +} + +stage('UploadArtifactsIntonexus'){ +sh "${mavenHome}/bin/mvn clean deploy" +} + +stage('DeployAppIntoTomcatServer'){ +sshagent(['b1d28235-19c6-4c2e-bf1b-25f5afc8c950']) { +sh "scp -o StrictHostKeyChecking=no target/maven-web-application.war ec2-user@172.31.22.163:/opt/apache-tomcat-9.0.102/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/JenkinsfileMay2025Batch b/JenkinsfileMay2025Batch new file mode 100644 index 0000000000..531c60a51f --- /dev/null +++ b/JenkinsfileMay2025Batch @@ -0,0 +1,35 @@ +node{ + +def mavenHome = tool name: 'maven3.9.9' + +echo "The Job name is: ${env.JOB_NAME}" +echo "Node name is: ${env.NODE_NAME} " +echo "Jenkins Home dir is: ${env.JENKINS_HOME}" +echo "Jenkins URL is: ${env.JENKINS_URL}" + +properties([buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '5', daysToKeepStr: '', numToKeepStr: '5')), pipelineTriggers([pollSCM('* * * * *')])]) + + +stage('CheckOutCode'){ +git branch: 'development', credentialsId: 'c3b748b8-2f4c-4889-a563-6ecdbc0d0fd5', 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('UploadArtifactIntoNexusRepo'){ +sh "${mavenHome}/bin/mvn clean deploy" +} + +stage('DeployAppIntoTomcatServer'){ +sshagent(['9f705349-1a24-4624-a6d6-432e9be2e53f']) { + sh "scp -o StrictHostKeyChecking=no target/maven-web-application.war ec2-user@172.31.44.240:/opt/apache-tomcat-9.0.105/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/Jenkinsfiledec2024batch b/Jenkinsfiledec2024batch new file mode 100644 index 0000000000..779193c734 --- /dev/null +++ b/Jenkinsfiledec2024batch @@ -0,0 +1,39 @@ +node{ + +def mavenHome = tool name: 'maven3.9.8' + +properties([buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '5', daysToKeepStr: '', numToKeepStr: '5')), pipelineTriggers([pollSCM('* * * * *')])]) + +echo "The Build name is: ${env.BUILD_NAME}" +echo "The Job name is: ${env.JOB_NAME}" +echo "The Node name is: ${env.NODE_NAME}" +echo "The workspace path is: ${env.WORKSPACE}" +echo "Jenkins default path is: ${env.JENKINS_HOME}" + + +stage('CheckOutCode'){ +git branch: 'development', credentialsId: 'fac38c0c-86fd-48e4-8733-eefd41f2d3d7', 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('DeployAppintoTomcatServer'){ +sshagent(['49f3f06f-0166-44c9-8e4e-7309df0b03a8']) { + sh "scp -o StrictHostKeyChecking=no target/maven-web-application.war ec2-user@172.31.24.100:/opt/apache-tomcat-9.0.98/webapps/" +} +} + +*/ + +} diff --git a/Jenkinsfilemithuntechno6am b/Jenkinsfilemithuntechno6am new file mode 100644 index 0000000000..708a2ebec9 --- /dev/null +++ b/Jenkinsfilemithuntechno6am @@ -0,0 +1,38 @@ +node{ + +def mavenHome = tool name: "maven3.9.10" + +echo "The Build Number is: ${env.BUILD_NUMBER}" +echo "The Node name is: ${env.NODE_NAME}" +echo "The workspace is: ${env.WORKSPACE}" +echo "The Jenkins URL: ${env.JENKINS_URL}" +echo "Jenkins Home dir is: ${env.JENKINS_HOME}" + +properties([buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '5', daysToKeepStr: '', numToKeepStr: '5')), pipelineTriggers([pollSCM('* * * * *')])]) + + +stage('CheckOutCode'){ +git branch: 'development', credentialsId: 'f1f41658-2699-417d-bc6d-cb31bce0f131', 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('DeployAppIntoTomcatServer'){ +sshagent(['fa30aac3-6b0f-4212-b2a1-5eb458df4218']) { + sh "scp -o StrictHostKeyChecking=no target/maven-web-application.war ec2-user@172.31.43.194:/opt/apache-tomcat-9.0.108/webapps/" +} +} +*/ + +} diff --git a/pom.xml b/pom.xml index d832dea9c7..c370c49d43 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.47.228:9000/ + squ_6bc8b4bb3dafbbefe7da409bdbed3c0a4284c7c4 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.32.156:8081/repository/metlife-release/ nexus Mithun Technologies Snapshot Nexus Repository - http://54.255.174.111:8081/repository/flipkart-snapshot/ + http://172.31.32.156:8081/repository/metlife-snapshot/ diff --git a/src/main/webapp/jsps/home.jsp b/src/main/webapp/jsps/home.jsp index 2d563be969..3757a0f324 100644 --- a/src/main/webapp/jsps/home.jsp +++ b/src/main/webapp/jsps/home.jsp @@ -9,8 +9,10 @@ -

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

+

Welcome to Mithun Technologies Private Ltd. Best Place to upskill - New DevOps with AWS Batch will start on Aug 30th at 7.30 PM IST - WebHook Demo by Bhaskar Reddy sir

+

Welcome to Mithun Technologies Private Ltd. Ph No: +91-9980923226, +91-9980923216,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

+

Trainer Name is: Bhaskar Reddy Lacchannagari



Server Side IP Address


@@ -37,7 +39,7 @@ out.println("Server Host Name :: "+inetAddress.getHostName()); Mithun Technologies, Martha Halli, Above ICICI Bank, Beside Meghana Foods, Bangalore, - +91-9980923226,+91-9900012028 + +91-9980923226,+91-9980923216 devopstrainingblr@gmail.com
Mail to Mithun Technologies @@ -48,7 +50,7 @@ out.println("Server Host Name :: "+inetAddress.getHostName());

Mithun Technologies - Consultant, Training, Development Center.

-

Copyrights 2022 by Mithun Technologies,Bengaluru

+

Copyrights 2025 by Mithun Technologies,Bengaluru