diff --git a/README.md b/README.md index 40efacc879..b10f805ecb 100644 --- a/README.md +++ b/README.md @@ -12,4 +12,5 @@ JUnit XML report. The `jenkins` directory contains an example of the `Jenkinsfile` (i.e. Pipeline) you'll be creating yourself during the tutorial and the `scripts` subdirectory contains a shell script with commands that are executed when Jenkins processes -the "Deliver" stage of your Pipeline. +the "Deliver" stage of your Pipeline.. +test....... diff --git a/jenkins/Jenkinsfile b/jenkins/Jenkinsfile index a70013f609..03ad6eab6f 100644 --- a/jenkins/Jenkinsfile +++ b/jenkins/Jenkinsfile @@ -1,10 +1,8 @@ pipeline { - agent { - docker { - image 'maven:3-alpine' - args '-v /root/.m2:/root/.m2' - } - } + agent any + tools { + maven 'mvn' + } stages { stage('Build') { steps { diff --git a/pom.xml b/pom.xml index 19ee4305a8..13f05d590e 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.mycompany.app my-app jar - 1.0-SNAPSHOT + 1.1-SNAPSHOT my-app http://maven.apache.org @@ -15,6 +15,10 @@ test + + 1.6 + 1.6 + @@ -32,6 +36,31 @@ + + org.jacoco + jacoco-maven-plugin + 0.5.10.201208310627 + + ${maven.test.skip} + file + true + + + + jacoco-initialize + + prepare-agent + + + + jacoco-site + verify + + report + + + +