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

Patch 10 #612

Open
wants to merge 36 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
43702cd
Update pom.xml
devopstrainingblr Apr 22, 2024
74d62dc
Update pom.xml
devopstrainingblr Apr 22, 2024
50085e3
Update pom.xml
devopstrainingblr Apr 23, 2024
75a5270
Update home.jsp
devopstrainingblr Apr 23, 2024
062f381
Update home.jsp
devopstrainingblr Apr 23, 2024
97159d3
Update home.jsp
devopstrainingblr Apr 29, 2024
f0039e2
Create Jenkinsfile
devopstrainingblr Apr 29, 2024
d0ca17d
Rename Jenkinsfile to JenkinsfileMarch2024Batch
devopstrainingblr Apr 29, 2024
7a7f78e
Update JenkinsfileMarch2024Batch
devopstrainingblr Apr 29, 2024
6b8efd7
Update Jenkinsfile7AMNovBatch2022
devopstrainingblr May 3, 2024
cc4d4f9
Update pom.xml
devopstrainingblr Jun 21, 2024
131583f
Update pom.xml
devopstrainingblr Jun 21, 2024
e0a0cd3
Update pom.xml
devopstrainingblr Jun 24, 2024
4a0fbef
Update pom.xml
devopstrainingblr Jun 24, 2024
1158322
Update home.jsp
devopstrainingblr Jun 24, 2024
a7d161c
Update home.jsp
devopstrainingblr Jun 24, 2024
7d4af3c
Create Jenkinsfile
devopstrainingblr Jul 1, 2024
9008a4c
Rename Jenkinsfile to JenkinsfileMay2024
devopstrainingblr Jul 1, 2024
1f25918
Update pom.xml
devopstrainingblr Jul 25, 2024
eb50f0e
Update pom.xml
devopstrainingblr Jul 25, 2024
8d8bc2e
Update home.jsp
devopstrainingblr Jul 25, 2024
8aa5f48
Update pom.xml
devopstrainingblr Jul 26, 2024
c42d8ce
Update pom.xml
devopstrainingblr Jul 26, 2024
c88c816
Update home.jsp
devopstrainingblr Jul 26, 2024
3b91b1d
Create Jenkinsfile
devopstrainingblr Aug 1, 2024
e3e53c4
Rename Jenkinsfile to JenkinsfileJune2024Batch
devopstrainingblr Aug 1, 2024
2bf8775
Update pom.xml
devopstrainingblr Sep 27, 2024
e22983b
Update pom.xml
devopstrainingblr Sep 27, 2024
8329a57
Update pom.xml
devopstrainingblr Sep 30, 2024
1c708ec
Update home.jsp
devopstrainingblr Sep 30, 2024
bce0c11
Update home.jsp
devopstrainingblr Sep 30, 2024
ab9d5d5
Update home.jsp
devopstrainingblr Sep 30, 2024
5d7f411
Create Jenkinsfile
devopstrainingblr Oct 4, 2024
cdd432f
Rename Jenkinsfile to JenkinsfileAugust2024
devopstrainingblr Oct 4, 2024
4c62740
Update JenkinsfileAugust2024
devopstrainingblr Oct 4, 2024
dbfb1d0
Update pom.xml
Vani100 Oct 19, 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
2 changes: 1 addition & 1 deletion Jenkinsfile7AMNovBatch2022
Original file line number Diff line number Diff line change
@@ -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}"
Expand Down
37 changes: 37 additions & 0 deletions JenkinsfileAugust2024
Original file line number Diff line number Diff line change
@@ -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 [email protected]:/opt/apache-tomcat-9.0.95/webapps/"
}
}
*/

}
34 changes: 34 additions & 0 deletions JenkinsfileJune2024Batch
Original file line number Diff line number Diff line change
@@ -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 [email protected]:/opt/apache-tomcat-9.0.91/webapps/"
}
}

*/

}
36 changes: 36 additions & 0 deletions JenkinsfileMarch2024Batch
Original file line number Diff line number Diff line change
@@ -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 [email protected]:/opt/apache-tomcat-9.0.86/webapps/"
}
}
*/

}
36 changes: 36 additions & 0 deletions JenkinsfileMay2024
Original file line number Diff line number Diff line change
@@ -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 [email protected]:/opt/apache-tomcat-9.0.89/webapps/"
}
}
*/

}
14 changes: 9 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,8 @@
<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.login>admin</sonar.login>
<sonar.password>passw0rd</sonar.password>
<sonar.host.url>http://3.110.221.229:9000/</sonar.host.url>
<sonar.login>d3abdb1dff0f798db4ca3d08546c3b4114327979</sonar.login>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

Expand Down Expand Up @@ -98,13 +97,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://3.6.93.170:9980/vani/repository/facebook-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://3.6.93.170:9980/vani/repository/facebook-snapchat/</url>
</snapshotRepository>

</distributionManagement>
Expand Down Expand Up @@ -146,6 +145,11 @@
<wtpContextName>maven-web-application</wtpContextName>
</configuration>
</plugin>
<plugin>
<groupId>org.sonarsource.scanner.maven</groupId>
<artifactId>sonar-maven-plugin</artifactId>
<version>4.7.0.2747</version> <!-- or the latest version -->
</plugin>

</plugins>
</build>
Expand Down
1 change: 1 addition & 0 deletions src/main/webapp/jsps/home.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
</head>
</head>
<body>
<h1 align="center"> Welcome to Mithun Technologies Private Ltd. Best Place to upskill - New Terraform Batch will start on Oct 1st at 8.00 AM IST - WebHook Demo</h1>
<h1 align="center">Welcome to Mithun Technologies Private Ltd. Ph No: +91-9980923226, +91-9980923216 ,+91-9900012028,Bengaluru,Karnataka,India</h1>
<h1 align="center"> Mithun Technologies- Very Good Training center for DevOps with AWS,Python & AWS Solution Architect & Terraform in Bangalore India.Teaching Real Time scnerios</h1>
<hr>
Expand Down