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

maven #615

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

maven #615

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
ce9e670
Update pom.xml
nagaavula123 Feb 28, 2024
1cd5958
Update pom.xml
nagaavula123 Feb 28, 2024
666fc10
Update pom.xml
nagaavula123 Feb 29, 2024
df12185
Update pom.xml
nagaavula123 Feb 29, 2024
6304c59
Update pom.xml
nagaavula123 Feb 29, 2024
60f1347
Update pom.xml
nagaavula123 Feb 29, 2024
bb1bfe5
Update pom.xml
nagaavula123 Feb 29, 2024
6f44771
Update home.jsp
nagaavula123 Feb 29, 2024
cbcf64a
Update pom.xml
nagaavula123 Mar 5, 2024
6be30a3
Update pom.xml
nagaavula123 Mar 5, 2024
cabbd75
Update home.jsp
nagaavula123 Mar 5, 2024
92548d4
Create Jenkins-Declerativeway-script
nagaavula123 Mar 6, 2024
9ed6e07
Update Jenkins-Declerativeway-script
nagaavula123 Mar 6, 2024
bed7fca
Update Jenkins-Declerativeway-script
nagaavula123 Mar 6, 2024
3d3f3c6
Update Jenkins-Declerativeway-script
nagaavula123 Mar 6, 2024
8ee9a8d
Update Jenkins-Declerativeway-script
nagaavula123 Mar 6, 2024
762c2b1
Update Jenkins-Declerativeway-script
nagaavula123 Mar 6, 2024
d1259cc
Merge branch 'MithunTechnologiesDevOps:master' into master
nagaavula123 Jun 21, 2024
5b1da9f
Update .gitignore
nagaavula123 Oct 29, 2024
6e7ec5f
Update maven.yml
nagaavula123 Oct 29, 2024
2d0b893
Update maven.yml
nagaavula123 Oct 29, 2024
78390c5
Update home.jsp
nagaavula123 Nov 25, 2024
67ce36d
Update home.jsp
nagaavula123 Nov 25, 2024
7b18422
Update home.jsp
nagaavula123 Nov 25, 2024
6073af1
Update home.jsp
nagaavula123 Nov 25, 2024
9c94d5f
Update pom.xml
nagaavula123 Nov 26, 2024
d30e223
Update home.jsp
nagaavula123 Nov 26, 2024
6f37041
Update pom.xml
nagaavula123 Nov 26, 2024
09de42d
Update pom.xml
nagaavula123 Nov 26, 2024
eb495e9
Update pom.xml
nagaavula123 Nov 26, 2024
ac4109e
Update pom.xml
nagaavula123 Nov 26, 2024
f0587e5
Update pom.xml
nagaavula123 Nov 27, 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
86 changes: 86 additions & 0 deletions Jenkins-Declerativeway-script
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
//Pipeline Declerativeway script


pipeline{
agent any
tools {
maven 'maven 3.9.6'
}
triggers {
pollSCM('* * * * *')
//cron('* * * * *')
}

options {
//Add timeStamp to the consoleoutput
timestamps()
//discard old bills
buildDiscarder logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '5', daysToKeepStr: '', numToKeepStr: '5')
}

stages {
//get the code from gitgub
stage('get the code from gitgub') {
steps {
git credentialsId: '08e9cecc-a6b1-4bcd-9b61-2c1a0a7b2878', url: 'https://github.com/nagaavula123/maven_web_application.git'
}
}

//Do the build
stage('Build') {
steps {
sh 'mvn clean package'
}
}
//Execute SonarQube Report
stage('Execute SonarQube Report') {
steps {
sh "mvn clean sonar:sonar"
}
}

//Upload Artifacet Into NexusServer
stage('UploadArtifacetIntoNexusServer') {
steps {
sh "mvn clean deploy"
}
}

//deploy App Into TomcatServer
stage('deployAppIntoTomcatServer') {
steps {
sshagent(['2a48a448-11b0-4bae-b2ad-f86f2b1907b2']) {
sh "scp -o StrictHostKeyChecking=no target/maven-web-application.war [email protected]:/opt/apache-tomcat-9.0.86/webapps/"
}
}
}
}//stages closing tag

post {
always {
emailext body: '''Build over---


Regards,
NagaMallareddy
8309487242''', subject: 'Build over---', to: '[email protected]'
}
success {
emailext body: '''Build over--- success


Regards,
NagaMallareddy
8309487242''', subject: 'Build over---', to: '[email protected]'
}
failure {
emailext body: '''Build over--- failure


Regards,
NagaMallareddy
8309487242''', subject: 'Build over---', to: '[email protected]'
}
}

}//pipelineclosing tag
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://65.0.76.194:9000/</sonar.host.url>
<sonar.login>admin</sonar.login>
<sonar.password>passw0rd</sonar.password>
<sonar.password>Naga@0332</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://13.201.118.3:8081/repository/citydev-release/</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://13.201.118.3:8081/repository/citydev-snapshot/</url>
</snapshotRepository>

</distributionManagement>
Expand Down
2 changes: 1 addition & 1 deletion src/main/webapp/jsps/home.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</head>
</head>
<body>
<h1 align="center">Welcome to Mithun Technologies Private Ltd. Ph No: +91-9980923226, +91-9980923216 ,+91-9900012028,Bengaluru,Karnataka,India</h1>
<h1 align="center">Welcome to OBUL 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>
<br>
Expand Down