Skip to content

Instantly share code, notes, and snippets.

View micks80's full-sized avatar

codeRISE micks80

View GitHub Profile
@micks80
micks80 / Jenkinsfile
Created October 11, 2017 03:30 — forked from jonico/Jenkinsfile
Example for a full blown Jenkins pipeline script with multiple stages, input steps, injected credentials, heroku deploy, multiple Git commit statuses, PR merge vs branch build detection, REST API calls to GitHub deployment API, stage timeouts, stage concurrency constraints, ...
#!groovy
import groovy.json.JsonOutput
import groovy.json.JsonSlurper
node {
// pull request or feature branch
if (env.BRANCH_NAME != 'master') {
checkout()
build()
unitTest()