forked from Ultimaker/fdm_materials
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile
More file actions
22 lines (20 loc) · 758 Bytes
/
Jenkinsfile
File metadata and controls
22 lines (20 loc) · 758 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
node('linux && cura') {
timeout(time: 5, unit: "MINUTES") {
// 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 {
// Perform sanity checks
stage('Sanity Checks') {
if (fileExists("scripts/check_material_profiles.py")) {
sh "${env.CURA_ENVIRONMENT_PATH}/master/bin/python3 scripts/check_material_profiles.py"
}
}
}
}
}