Browse Source

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.
Arjen Hiemstra 7 years ago
parent
commit
07ff4054e9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Jenkinsfile

+ 1 - 1
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"
                 }