mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-09 23:05:01 -06:00
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.
This commit is contained in:
parent
cf25515b90
commit
07ff4054e9
1 changed files with 1 additions and 1 deletions
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
|
@ -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"
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue