CCM NG: Jenkinsfile
git-svn-id: https://svn.libreccm.org/ccm/ccm_ng@6014 8810af33-2d31-482b-a856-94f89814c4dfccm-docs
parent
1c22c8efcb
commit
58dadec14d
|
|
@ -0,0 +1,42 @@
|
||||||
|
pipeline {
|
||||||
|
agent any
|
||||||
|
tools {
|
||||||
|
maven 'apache-maven-3.6.0'
|
||||||
|
}
|
||||||
|
stages {
|
||||||
|
stage('Build and Test') {
|
||||||
|
steps {
|
||||||
|
dir('') {
|
||||||
|
sh 'mvn clean package test -Pwildfly-remote-h2-mem'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage("Analyse") {
|
||||||
|
steps {
|
||||||
|
dir('') {
|
||||||
|
sh 'mvn package pmd:pmd pmd:cpd spotbugs:spotbugs'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
post {
|
||||||
|
success {
|
||||||
|
mail to: 'developers@scientificcms.org',
|
||||||
|
subject: "${currentBuild.fullDisplayName} was successful"
|
||||||
|
body: "Build ${env.BUILD_URL} was successful."
|
||||||
|
}
|
||||||
|
failure {
|
||||||
|
mail to: 'developers@scientificcms.org',
|
||||||
|
subject: "${currentBuild.fullDisplayName} FAILED!!!"
|
||||||
|
body: "Build ${env.BUILD_URL} failed."
|
||||||
|
}
|
||||||
|
always {
|
||||||
|
junit testResults: '**/target/surefire-reports/*.xml'
|
||||||
|
|
||||||
|
recordIssues enabledForFailure: true, tools: [java(), javaDoc()]
|
||||||
|
recordIssues enabledForFailure: false, tool: spotBugs()
|
||||||
|
recordIssues enabledForFailure: false, tool: cpd(pattern: '**/target/cpd.xml')
|
||||||
|
recordIssues enabledForFailure: false, tool: pmdParser(pattern: '**/target/pmd.xml')
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue