Skip to content

funkwerk/jenkins-workflow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 

Repository files navigation

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