2018-02-22 22:37:51 +00:00
|
|
|
pipeline {
|
|
|
|
agent any
|
|
|
|
stages {
|
|
|
|
stage('Build') {
|
|
|
|
steps {
|
|
|
|
checkout([
|
|
|
|
$class: 'GitSCM',
|
|
|
|
branches: [[name: '**']],
|
|
|
|
extensions: [[$class: 'CleanBeforeCheckout']],
|
|
|
|
userRemoteConfigs: [[credentialsId: 'github-kemitix', url: 'git@github.com:kemitix/conditional.git']]
|
|
|
|
])
|
|
|
|
sh './mvnw clean install'
|
|
|
|
junit '**/target/surefire-reports/*.xml'
|
|
|
|
archiveArtifacts '**/target/*.jar'
|
|
|
|
}
|
|
|
|
}
|
2018-02-23 18:50:56 +00:00
|
|
|
stage('Publish Coverage') {
|
|
|
|
steps {
|
2018-02-23 19:25:45 +00:00
|
|
|
sh 'curl -s https://codecov.io/bash | bash -s || echo "Codecov did not collect coverage reports"'
|
2018-02-23 19:14:40 +00:00
|
|
|
sh './mvnw test jacoco:report coveralls:report'
|
2018-02-23 18:50:56 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Deploy') {
|
|
|
|
steps {
|
|
|
|
sh './mvnw -Dskip-Tests=true -P release -B deploy'
|
|
|
|
}
|
|
|
|
}
|
2018-02-22 22:37:51 +00:00
|
|
|
}
|
|
|
|
}
|