Contains handy groovy workflow-libs scripts for Jenkins.
Goal is to keep Jenkinsfile
as concise and readable as possible.
Clone this project into $JENKINS_HOME/workflow-libs
. After that restart Jenkins. Then Pipeline as well as Multi-Branch-Pipeline Builds are able to use these steps.
#!groovy
developer {
checkoutScm()
rake 'unittest[--report=build/report.xml]'
reportJunit 'build/report.xml' // will publish the test report
optional { rake 'audit' } // to mark stages which are not critical
rake 'uml'
reportHtml(name: 'UML', path: 'build/html') // will upload an arbitrary HTML Report
rake 'test variant=release'
rake 'deploy prefix=export'
}