diff options
author | Arjen Hiemstra <ahiemstra@heimr.nl> | 2017-08-02 17:36:12 +0300 |
---|---|---|
committer | Arjen Hiemstra <ahiemstra@heimr.nl> | 2017-08-02 17:38:39 +0300 |
commit | 07ff4054e9bb9ed6e621ba51fdd3e1f637605f00 (patch) | |
tree | 70d7484651c58220326da428a03f3df9a5cdf748 /Jenkinsfile | |
parent | cf25515b90c23f1a6c35e74b80b590272d04456c (diff) |
Fall back properly if the build env for a specific branch does not exist
Otherwise we will always need to create branches for
cura-build-environment. In addition, we can now create build-specific
branches if needed.
Diffstat (limited to 'Jenkinsfile')
-rw-r--r-- | Jenkinsfile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Jenkinsfile b/Jenkinsfile index 7b45eafdf5..f7c43dd8bd 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -15,7 +15,7 @@ parallel_nodes(['linux && cura', 'windows && cura']) { // Perform the "build". Since Uranium is Python code, this basically only ensures CMake is setup. stage('Build') { def branch = env.BRANCH_NAME - if(!(branch =~ /^2.\d+$/)) { + if(branch != "master" && !fileExists("${env.CURA_ENVIRONMENT_PATH}/${branch})) { branch = "master" } |