Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
21 changes: 12 additions & 9 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
env.mvnHome = '/home/vagrant/tools/maven'
node('mslave') {
//def mvnHome

node('mavenslave'){
def mvnHome
stage('Preparation') { // for display purposes

// Get some code from a GitHub repository
git 'https://github.com/jglick/simple-maven-project-with-tests.git'

//mvnHome = $M3
// Get the Maven tool.
// ** NOTE: This 'M3' Maven tool must be configured
// ** in the global configuration.
mvnHome = tool 'M3'
}
stage('Build') {

// Run the maven build
if (isUnix()) {
sh "'${mvnHome}/bin/mvn' clean install"
sh "'${mvnHome}/bin/mvn' -Dmaven.test.failure.ignore clean package"
} else {
bat(/"${mvnHome}\bin\mvn" -Dmaven.test.failure.ignore clean package/)
}
Expand All @@ -20,4 +20,7 @@ node('mslave') {
junit '**/target/surefire-reports/TEST-*.xml'
archive 'target/*.jar'
}
stage('mail notification') {
mail bcc: '', body: 'test', cc: '', from: '', replyTo: '', subject: 'test', to: 'raviaare@gmail.com'
}
}
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# springexample
springexample
jhbfjh
bsfv

rking on rel1.0

djksnvjk
\kjdnfkjlv
13 changes: 1 addition & 12 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,6 @@

</dependencies>

<distributionManagement>
<repository>
<id>devops-releases</id>
<name>devops-releases</name>
<url>http://ec2-13-59-102-131.us-east-2.compute.amazonaws.com:8081/nexus/content/repositories/devops-releases</url>
</repository>
<snapshotRepository>
<id>devops-snapshots</id>
<name>devops-snapshots</name>
<url>http://ec2-13-59-102-131.us-east-2.compute.amazonaws.com:8081/nexus/content/repositories/devops-snapshots</url>
</snapshotRepository>
</distributionManagement>


</project>