Skip to content
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

Uat #561

Open
wants to merge 63 commits into
base: master
Choose a base branch
from
Open

Uat #561

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
122a1e3
Update pom.xml
devopstrainingblr Jul 5, 2023
4c55458
Update pom.xml
devopstrainingblr Jul 5, 2023
bda6f6d
Update home.jsp
devopstrainingblr Jul 6, 2023
e9dfafa
Update home.jsp
devopstrainingblr Jul 6, 2023
f7cbaec
Create Jenkinsfile
devopstrainingblr Jul 12, 2023
d6cd40e
Rename Jenkinsfile to JenkinsfileMayBatch2023
devopstrainingblr Jul 12, 2023
ebf3ecb
Update Jenkinsfile7AMNovBatch2022
devopstrainingblr Jul 14, 2023
cd36874
Update pom.xml
devopstrainingblr Aug 10, 2023
076205f
Update pom.xml
devopstrainingblr Aug 10, 2023
03da0e8
Update home.jsp
devopstrainingblr Aug 10, 2023
f532642
Update pom.xml
devopstrainingblr Aug 11, 2023
d98e1ae
Update home.jsp
devopstrainingblr Aug 11, 2023
d7ded27
Update pom.xml
devopstrainingblr Sep 30, 2023
764d301
Update pom.xml
devopstrainingblr Sep 30, 2023
ed61580
Update home.jsp
devopstrainingblr Sep 30, 2023
c9bd63a
Update pom.xml
devopstrainingblr Oct 2, 2023
2944b54
Update home.jsp
devopstrainingblr Oct 2, 2023
a404eb6
Update home.jsp
devopstrainingblr Oct 2, 2023
62c5c81
Create Jenkinsfile
devopstrainingblr Oct 6, 2023
9f92294
Update Jenkinsfile
devopstrainingblr Oct 6, 2023
6efd1ab
Rename Jenkinsfile to JenkinsfileAug7.30PMBatch
devopstrainingblr Oct 6, 2023
4061677
Update pom.xml
devopstrainingblr Oct 31, 2023
c9cd640
Update pom.xml
devopstrainingblr Oct 31, 2023
ff0f31d
Update pom.xml
devopstrainingblr Oct 31, 2023
dc7d57f
Update pom.xml
devopstrainingblr Nov 1, 2023
a84efdd
Update pom.xml
devopstrainingblr Nov 1, 2023
de2013f
Update home.jsp
devopstrainingblr Nov 1, 2023
dc596e0
Update home.jsp
devopstrainingblr Nov 1, 2023
5ed9c8e
Update home.jsp
devopstrainingblr Nov 1, 2023
77be29f
Create Jenkinsfile
devopstrainingblr Nov 4, 2023
2e0aca2
Update Jenkinsfile
devopstrainingblr Nov 4, 2023
147f26f
Rename Jenkinsfile to JenkinsfileSep20236AM
devopstrainingblr Nov 4, 2023
e636e69
Update Jenkinsparalleljob
devopstrainingblr Nov 7, 2023
805c226
Update pom.xml
devopstrainingblr Dec 18, 2023
4577b41
Update pom.xml
devopstrainingblr Dec 18, 2023
25e40e8
Update pom.xml
devopstrainingblr Dec 19, 2023
cdd81e8
Update home.jsp
devopstrainingblr Dec 19, 2023
f5fd9e2
Update home.jsp
devopstrainingblr Dec 19, 2023
d9df23b
Update pom.xml
devopstrainingblr Dec 27, 2023
e38592a
Update pom.xml
devopstrainingblr Dec 27, 2023
c95ccbc
Create Jenkinsfile
devopstrainingblr Dec 28, 2023
0e699d3
Update Jenkinsfile
devopstrainingblr Dec 28, 2023
9bd53e4
Rename Jenkinsfile to JenkinsfileOct2023batch
devopstrainingblr Dec 28, 2023
1ab633c
Update pom.xml
devopstrainingblr Jan 25, 2024
8625584
Update pom.xml
devopstrainingblr Jan 25, 2024
4750de6
Update home.jsp
devopstrainingblr Jan 25, 2024
78a7e39
Update pom.xml
devopstrainingblr Jan 26, 2024
a2ee2c4
Update home.jsp
devopstrainingblr Jan 26, 2024
3e9d250
Create Jenkinsfile
devopstrainingblr Feb 1, 2024
1d7654d
Rename Jenkinsfile to JenkinsfileDec20236AM
devopstrainingblr Feb 1, 2024
025c89c
Update pom.xml
ayanshishika Mar 15, 2024
7e53bda
Update pom.xml
ayanshishika Mar 15, 2024
180347e
Update pom.xml
ayanshishika Mar 15, 2024
289453b
Update pom.xml
ayanshishika Mar 15, 2024
7b3b58e
Update pom.xml
ayanshishika Mar 15, 2024
c447113
Update home.jsp
ayanshishika Mar 15, 2024
94932b3
Update pom.xml
ayanshishika Mar 15, 2024
64af654
Update pom.xml
ayanshishika Mar 15, 2024
165678f
Update home.jsp
ayanshishika Mar 15, 2024
044702b
Update home.jsp
ayanshishika Mar 15, 2024
12ba781
Update home.jsp
ayanshishika Mar 15, 2024
3c9b84b
Update pom.xml
ayanshishika Mar 16, 2024
816fd6a
Update pom.xml
ayanshishika Mar 16, 2024
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
3 changes: 3 additions & 0 deletions Jenkinsfile7AMNovBatch2022
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
node{




properties([buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '5', daysToKeepStr: '', numToKeepStr: '5')), [$class: 'JobLocalConfiguration', changeReasonComment: ''], pipelineTriggers([pollSCM('* * * * *')])])

echo "The Job name is: ${env.JOB_NAME}"
Expand Down
34 changes: 34 additions & 0 deletions JenkinsfileAug7.30PMBatch
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
node{

def mavenHome = tool name: "maven3.9.4"

properties([buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '5', daysToKeepStr: '', numToKeepStr: '5')), [$class: 'JobLocalConfiguration', changeReasonComment: ''], pipelineTriggers([pollSCM('* * * * * ')])])



stage('CheckOutCode'){
git branch: 'development', credentialsId: '2d5109d1-9d45-4ef3-a140-95970e07934a', 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('UploadArtifcatsIntoNexus'){
sh "${mavenHome}/bin/mvn clean deploy"
}

stage('DeployAppIntoTomcatServer'){
sshagent(['81b2df6e-2466-495a-9a7c-7e26ebcae8c5']) {
sh "scp -o StrictHostKeyChecking=no target/maven-web-application.war ec2-user@172.31.2.249:/opt/apache-tomcat-9.0.80/webapps/"
}
}
*/

}//node closing
40 changes: 40 additions & 0 deletions JenkinsfileDec20236AM
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
node{

def mavenHome = tool name: 'maven3.9.6'

properties([buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '5', daysToKeepStr: '', numToKeepStr: '5')), [$class: 'JobLocalConfiguration', changeReasonComment: ''], pipelineTriggers([pollSCM('* * * * *')])])

echo "Build Number is: ${env.BUILD_NUMBER}"
echo "Job name is: ${env.JOB_NAME}"
echo "Node name is: ${env.NODE_NAME}"
echo "Jenkins Home dir is: ${env.JENKINS_HOME}"
echo "Build url ${env.BUILD_URL}"
echo "Jenkins url is: ${env.JENKINS_URL}"


stage('CheckOutCode'){
git branch: 'development', credentialsId: 'c68807c4-06a5-4f79-9299-8983b1319a9a', 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(['24445bb8-9b6c-495a-ac51-6fdb43c228e0']) {
sh "scp -o StrictHostKeyChecking=no target/maven-web-application.war ec2-user@172.31.8.105:/opt/apache-tomcat-9.0.85/webapps/"
}
}
*/


}
33 changes: 33 additions & 0 deletions JenkinsfileMayBatch2023
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
node{

def mavenHome = tool name: 'maven3.9.2'

echo "Node name is: ${env.NODE_NAME}"
echo "Job name is: ${env.JOB_NAME}"
echo "Build Number is: ${env.BUILD_NUMBER}"

properties([buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '5', daysToKeepStr: '', numToKeepStr: '5')), [$class: 'JobLocalConfiguration', changeReasonComment: ''], pipelineTriggers([pollSCM('* * * * *')])])

stage('CheckoutCode'){
git branch: 'development', credentialsId: '3ee0af56-63b8-4deb-8ab6-a229fcb70cca', 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('DeployApplicationIntoTomcatServer'){
sshagent(['f483d673-a393-4308-8baa-f2caac9ec57a']) {
sh "scp -o StrictHostKeyChecking=no target/maven-web-application.war ec2-user@172.31.36.222:/opt/apache-tomcat-9.0.76/webapps/"
}
}
*/
}
74 changes: 74 additions & 0 deletions JenkinsfileOct2023batch
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
node{

def mavenHome = tool name: 'maven3.9.6'

echo "Job Name is: ${env.JOB_NAME}"
echo "Node name is: ${env.NODE_NAME}"
echo "Jenkins Home is: ${env.JENKINS_HOME}"
echo "Jenkins URL: ${env.JENKINS_URL}"


properties([buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '5', daysToKeepStr: '', numToKeepStr: '5')), [$class: 'JobLocalConfiguration', changeReasonComment: ''], pipelineTriggers([pollSCM('* * * * *')])])


try{
stage('CheckOutCode'){
sendSlackNotifications("STARTED")
git branch: 'development', credentialsId: 'f4d4cd21-a88b-47f1-9fd3-113028034791', 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('DeployAppIntoTomcatServer'){
sshagent(['4ca524cf-56e2-47f7-a073-721da2ac9f53']) {
sh "scp -o StrictHostKeyChecking=no target/maven-web-application.war ec2-user@172.31.40.148:/opt/apache-tomcat-9.0.84/webapps/"
}
}
*/
}
catch(e){
currentBuild.result = "FAILURE"
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)
}

38 changes: 38 additions & 0 deletions JenkinsfileSep20236AM
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
node{

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 Home Dir is: ${env.JENKINS_HOME}"

properties([buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '5', daysToKeepStr: '', numToKeepStr: '5')), [$class: 'JobLocalConfiguration', changeReasonComment: ''], pipelineTriggers([pollSCM('* * * * *')])])


def mavenHome = tool name: "maven3.9.4"

stage('CheckoutCode'){
git branch: 'development', credentialsId: '713a50f7-b157-4eb3-8f67-026f0249e5f3', 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('UploadIntoNexus'){
sh "${mavenHome}/bin/mvn clean deploy"
}

stage('DeployAppIntoTomcat'){
sshagent(['ea9ee369-daff-4af0-9f08-b8bbe168a9b2']) {
sh "scp -o StrictHostKeyChecking=no target/maven-web-application.war ec2-user@172.31.6.39:/opt/apache-tomcat-9.0.82/webapps/ "
}
}

*/
}
2 changes: 1 addition & 1 deletion Jenkinsparalleljob
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ pipeline{
}

stages{
//Get the code from GitHub
//Get the code from GitHub scm
stage('CheckoutCode'){
steps{

Expand Down
8 changes: 4 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
<spring.version>5.1.2.RELEASE</spring.version>
<junit.version>4.11</junit.version>
<log4j.version>1.2.17</log4j.version>
<sonar.host.url>http://18.138.81.149:9000/</sonar.host.url>
<sonar.host.url>http://13.201.91.138:9000/</sonar.host.url>
<sonar.login>admin</sonar.login>
<sonar.password>passw0rd</sonar.password>
<sonar.password>password</sonar.password>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

Expand Down Expand Up @@ -98,13 +98,13 @@
<repository>
<id>nexus</id>
<name>Mithun Technologies Releases Nexus Repository</name>
<url>http://54.255.174.111:8081/repository/flipkart-release/</url>
<url>http://52.66.178.23:8081/repository/maven-releases/</url>
</repository>

<snapshotRepository>
<id>nexus</id>
<name>Mithun Technologies Snapshot Nexus Repository </name>
<url>http://54.255.174.111:8081/repository/flipkart-snapshot/</url>
<url>http://52.66.178.23:8081/repository/maven-snapshots/</url>
</snapshotRepository>

</distributionManagement>
Expand Down
5 changes: 3 additions & 2 deletions src/main/webapp/jsps/home.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@
</head>
</head>
<body>
<h1 align="center">Welcome to Mithun Technologies. Marathahalli,Bengaluru,Karnataka,India </h1>
<h1 align="center"> Mithun Technologies- Very Good Training center for DevOps with AWS in Bangalore India and also for Job Assitance Job Support also...Teaching Real Time scnerios</h1>
<h1 align="center">Welcome to Mithun Technologies Pvt Ltd. Sri Satya Sai (Dist),Andhra Pradesh,India </h1>
<h1 align="center"> GitHub Webhook demo class - New DevOps with AWS Batch will start on march 15th 2024 at 8.00 PM IST - Contact 9980923226/9980923216 or devopstrainingblr@gmail.com</h1>
<h1 align="center"> Mithun Technologies- Very very Good Training center for DevOps with AWS in Bangalore India and also for Job Assitance Job Support also...Teaching Real Time scnerios</h1>
<hr>
<br>
<h1><h3> Server Side IP Address </h3><br>
Expand Down