File: Jenkinsfile

package info (click to toggle)
fdm-materials 5.0.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,492 kB
  • sloc: sh: 320; python: 201; makefile: 5
file content (22 lines) | stat: -rw-r--r-- 758 bytes parent folder | download | duplicates (5)
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"
                }
            }
        }
    }
}