contains handy groovy workflow-libs scripts
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
vars
LICENSE
README.md

README.md

jenkins-workflow

Contains handy groovy workflow-libs scripts for Jenkins. Goal is to keep Jenkinsfile as concise and readable as possible.

Usage

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.

Simple Example for a Rake Project

#!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'
}

References