Skip to content

Instantly share code, notes, and snippets.

@ybmadhu
ybmadhu / Jenkinsfile
Created January 7, 2019 18:57 — forked from fabiojose/Jenkinsfile
Sample Jenkinsfile to build, test and deploy Platform-as-Code in Openshift
pipeline {
/* run in any agent (a.k.a. node executor) */
agent any
stages {
stage('Setup') {
steps {
script {
/* Check the GIT_BRANCH to compute the target environment */
if (env.GIT_BRANCH == 'origin/develop' || env.GIT_BRANCH ==~ /(.+)feature-(.+)/) {