CCM NG: Jenkinsfile

git-svn-id: https://svn.libreccm.org/ccm/ccm_ng@6014 8810af33-2d31-482b-a856-94f89814c4df
pull/2/head
jensp 2019-05-06 15:22:58 +00:00
parent 84db17c6e7
commit ae061f0b8d
1 changed files with 42 additions and 0 deletions

42
Jenkinsfile vendored 100644
View File

@ -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')
}
}
}