mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-16 06:55:55 +08:00
Merge branch '2.7'
This commit is contained in:
commit
6db55cea64
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@ -15,13 +15,13 @@ parallel_nodes(['linux && cura', 'windows && cura']) {
|
|||||||
// 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
|
def branch = env.BRANCH_NAME
|
||||||
if(!(branch =~ /^2.\d+$/)) {
|
if(!fileExists("${env.CURA_ENVIRONMENT_PATH}/${branch}")) {
|
||||||
branch = "master"
|
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/${branch}")
|
def uranium_dir = get_workspace_dir("Ultimaker/Uranium/${branch}")
|
||||||
cmake("..", "-DCMAKE_PREFIX_PATH=${env.CURA_ENVIRONMENT_PATH}/${branch} -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…
x
Reference in New Issue
Block a user