mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-15 02:37:49 -06:00
Select build environment on CI based on branch name
This commit is contained in:
parent
bbd852ceb7
commit
d531d85aa2
1 changed files with 7 additions and 2 deletions
9
Jenkinsfile
vendored
9
Jenkinsfile
vendored
|
@ -14,9 +14,14 @@ parallel_nodes(['linux && cura', 'windows && cura']) {
|
||||||
dir('build') {
|
dir('build') {
|
||||||
// Perform the "build". Since Uranium is Python code, this basically only ensures CMake is setup.
|
// Perform the "build". Since Uranium is Python code, this basically only ensures CMake is setup.
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
|
def branch = env.BRANCH_NAME
|
||||||
|
if(!(branch =~ /^2.\d+$/)) {
|
||||||
|
branch = "master"
|
||||||
|
}
|
||||||
|
|
||||||
// Ensure CMake is setup. Note that since this is Python code we do not really "build" it.
|
// Ensure CMake is setup. Note that since this is Python code we do not really "build" it.
|
||||||
def uranium_dir = get_workspace_dir("Ultimaker/Uranium/master")
|
def uranium_dir = get_workspace_dir("Ultimaker/Uranium/${branch}")
|
||||||
cmake("..", "-DCMAKE_PREFIX_PATH=${env.CURA_ENVIRONMENT_PATH} -DCMAKE_BUILD_TYPE=Release -DURANIUM_DIR=${uranium_dir}")
|
cmake("..", "-DCMAKE_PREFIX_PATH=${env.CURA_ENVIRONMENT_PATH}/${branch} -DCMAKE_BUILD_TYPE=Release -DURANIUM_DIR=${uranium_dir}")
|
||||||
}
|
}
|
||||||
|
|
||||||
// Try and run the unit tests. If this stage fails, we consider the build to be "unstable".
|
// Try and run the unit tests. If this stage fails, we consider the build to be "unstable".
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue