This repository has been archived on 2022-02-11. You can view files and clone it, but cannot push or open issues or pull requests.
2021-12-08 10:42:55 +01:00
|
|
|
pipeline {
|
|
|
|
agent any
|
|
|
|
|
|
|
|
options {
|
|
|
|
ansiColor('xterm')
|
|
|
|
}
|
|
|
|
|
|
|
|
stages {
|
|
|
|
stage('Build') {
|
|
|
|
steps {
|
|
|
|
sh 'mvn -DskipTests clean package'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Test') {
|
|
|
|
steps {
|
|
|
|
sh 'mvn test'
|
|
|
|
}
|
|
|
|
post {
|
|
|
|
always {
|
2021-12-11 17:58:09 +01:00
|
|
|
junit '*/target/surefire-reports/*.xml'
|
2021-12-24 13:41:27 +01:00
|
|
|
publishCoverage adapters: [jacocoAdapter(mergeToOneReport: true, path: '*/target/site/jacoco/jacoco.xml')]
|
2021-12-08 10:42:55 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('SonarQube Analysis') {
|
|
|
|
when {
|
|
|
|
branch 'develop'
|
|
|
|
}
|
|
|
|
steps {
|
|
|
|
withSonarQubeEnv('KSKE SonarQube') {
|
|
|
|
sh 'mvn org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.1.2184:sonar'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
post {
|
|
|
|
success {
|
2021-12-11 17:58:09 +01:00
|
|
|
archiveArtifacts artifacts: '*/target/undo-redo-*.jar'
|
2021-12-08 10:42:55 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|