Add some echo messages + test github webhook

This commit is contained in:
Gabriele C 2018-03-18 22:37:20 +01:00
parent 3cc056983d
commit 5dc02fb6a3

7
Jenkinsfile vendored
View File

@ -30,14 +30,18 @@ pipeline {
} }
stage ('compile') { stage ('compile') {
steps { steps {
echo 'Compiling...'
withCredentials([string(credentialsId: 'authme-coveralls-token', variable: 'COVERALLS_TOKEN')]) { withCredentials([string(credentialsId: 'authme-coveralls-token', variable: 'COVERALLS_TOKEN')]) {
sh 'mvn clean verify coveralls:report -DrepoToken=$COVERALLS_TOKEN' sh 'mvn clean verify coveralls:report -DrepoToken=$COVERALLS_TOKEN'
} }
} }
post { post {
always { always {
junit 'target/surefire-reports/*.xml' echo 'Archiving coverage results...'
jacoco(execPattern: '**/**.exec', classPattern: '**/classes', sourcePattern: '**/src/main/java') jacoco(execPattern: '**/**.exec', classPattern: '**/classes', sourcePattern: '**/src/main/java')
echo 'Archiving test results...'
junit 'target/surefire-reports/*.xml'
echo 'Archiving artifacts...'
archiveArtifacts artifacts: 'target/*.jar', fingerprint: true archiveArtifacts artifacts: 'target/*.jar', fingerprint: true
} }
} }
@ -47,6 +51,7 @@ pipeline {
branch "master" branch "master"
} }
steps { steps {
echo 'Master branch detected, deploying to maven repository...'
sh 'mvn -DskipTests deploy' sh 'mvn -DskipTests deploy'
} }
} }