diff options
author | Ghostkeeper <rubend@tutanota.com> | 2017-08-03 17:17:52 +0300 |
---|---|---|
committer | Ghostkeeper <rubend@tutanota.com> | 2017-08-03 17:17:52 +0300 |
commit | 566451c000361a0d96ba32bf062bed0ee1422e33 (patch) | |
tree | 5433230318bbf30ccd69a50fdce7481b2ded1392 /Jenkinsfile | |
parent | 295ef88f081fe63a4cfe9ca1af86a09a1f3b641b (diff) |
Add jenkinsfile to start automated CI
No tests yet. We'll do that next.
Diffstat (limited to 'Jenkinsfile')
-rw-r--r-- | Jenkinsfile | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 000000000..249e5bb31 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,25 @@ +parallel_nodes(["linux && cura", "windows && cura"]) { + stage('Prepare') { + step([$class: 'WsCleanup']) + + checkout scm + } + + catchError { + dir('build') { + stage('Build') { + def branch = env.BRANCH_NAME + if(!fileExists("${env.CURA_ENVIRONMENT_PATH}/${branch}")) { + branch = "master" + } + + cmake '..', "-DCMAKE_PREFIX_PATH=\"${env.CURA_ENVIRONMENT_PATH}/${branch}\" -DCMAKE_BUILD_TYPE=Release" + make + } + } + } + + stage('Finalize') { + notify_build_result(env.CURA_EMAIL_RECIPIENTS, '#cura-dev', ['master']) + } +} |