Commit 3c675ff2 authored by Moritz Schott's avatar Moritz Schott
Browse files

Update Jenkinsfile to run statistics only if necessary

parent 33fea542
......@@ -39,6 +39,16 @@ pipeline {
}
stage ('Reports and Statistics') {
//create reports only if triggerd by new code
when {
expression {
if(currentBuild.rawBuild.getCauses().any { it ==~ /^jenkins\.branch\.BranchIndexingCause.*/}){
return true
}
return false
}
}
steps {
script {
projver=sh(returnStdout: true, script: 'mvn org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=project.version | grep -Ev "(^\\[|Download\\w+)"').trim()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment