-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from Ultimaker/master
Updating master
- Loading branch information
Showing
971 changed files
with
205,755 additions
and
61,555 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
parallel_nodes(['linux && cura', 'windows && cura']) { | ||
// Prepare building | ||
stage('Prepare') { | ||
// Ensure we start with a clean build directory. | ||
step([$class: 'WsCleanup']) | ||
|
||
// Checkout whatever sources are linked to this pipeline. | ||
checkout scm | ||
} | ||
|
||
// If any error occurs during building, we want to catch it and continue with the "finale" stage. | ||
catchError { | ||
// Building and testing should happen in a subdirectory. | ||
dir('build') { | ||
// Perform the "build". Since Uranium is Python code, this basically only ensures CMake is setup. | ||
stage('Build') { | ||
def branch = env.BRANCH_NAME | ||
if(!fileExists("${env.CURA_ENVIRONMENT_PATH}/${branch}")) { | ||
branch = "master" | ||
} | ||
|
||
// 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}") | ||
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". | ||
stage('Unit Test') { | ||
try { | ||
make('test') | ||
} catch(e) { | ||
currentBuild.result = "UNSTABLE" | ||
} | ||
} | ||
} | ||
} | ||
|
||
// Perform any post-build actions like notification and publishing of unit tests. | ||
stage('Finalize') { | ||
// Publish the test results to Jenkins. | ||
junit allowEmptyResults: true, testResults: 'build/junit*.xml' | ||
|
||
notify_build_result(env.CURA_EMAIL_RECIPIENTS, '#cura-dev', ['master', '2.']) | ||
} | ||
} |
Oops, something went wrong.