This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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-(.+)/) { |