diff --git a/Jenkinsfile b/Jenkinsfile index eb6cfed..9f99def 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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/) } @@ -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' + } } diff --git a/README.md b/README.md index c4338b4..d2e3dc2 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ -# springexample -springexample -jhbfjh -bsfv + +rking on rel1.0 + +djksnvjk +\kjdnfkjlv diff --git a/pom.xml b/pom.xml index 1388656..d954c61 100755 --- a/pom.xml +++ b/pom.xml @@ -26,17 +26,6 @@ - - - devops-releases - devops-releases - http://ec2-13-59-102-131.us-east-2.compute.amazonaws.com:8081/nexus/content/repositories/devops-releases - - - devops-snapshots - devops-snapshots - http://ec2-13-59-102-131.us-east-2.compute.amazonaws.com:8081/nexus/content/repositories/devops-snapshots - - +