From 78e7cff5f5be5aa170d76ad54fa37e8d68e2aeaf Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Fri, 23 Feb 2018 18:50:56 +0000 Subject: [PATCH] Add jenkins stages for coverage and deployment --- Jenkinsfile | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index f8c4590..5dc041d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -14,5 +14,16 @@ pipeline { archiveArtifacts '**/target/*.jar' } } + stage('Publish Coverage') { + steps { + sh './mvnw test jacoco:report coveralls:report' + sh 'bash <(curl -s https://codecov.io/bash)' + } + } + stage('Deploy') { + steps { + sh './mvnw -Dskip-Tests=true -P release -B deploy' + } + } } }