forked from castle-engine/castle-engine
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathJenkinsfile.macos
55 lines (53 loc) · 1.73 KB
/
Jenkinsfile.macos
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/* -*- mode: groovy -*-
Confgure how to run our job in Jenkins.
This runs on macOS, and can build for iOS and macOS.
See https://github.com/castle-engine/castle-engine/wiki/Cloud-Builds-(Jenkins) .
*/
library 'cag-shared-jenkins-library'
pipeline {
agent {
label 'ios-cge-builder'
}
environment {
/* Used by CGE build tool ("castle-engine").
Define env based on another env variable.
According to https://github.com/jenkinsci/pipeline-model-definition-plugin/pull/110
this should be supported. */
CASTLE_ENGINE_PATH = "${WORKSPACE}"
PATH = "${PATH}:${WORKSPACE}/tools/build-tool/"
}
stages {
stage('Build Tools') {
steps {
sh 'make clean tools'
}
}
stage('Build Examples') {
steps {
//sh 'make examples'
// Faster check for now:
sh 'cd examples/fps_game/ && castle-engine compile'
}
}
}
post {
//success {
/* archiveArtifacts artifacts: 'escape_universe-*.tar.gz,escape_universe-*.zip,escape_universe*.apk,web-story/test_escape_universe_story-*.zip,web-story/test_escape_universe_story-*.tar.gz' */
//}
regression {
mail to: '[email protected]',
subject: "[jenkins] Build started failing: ${currentBuild.fullDisplayName}",
body: "See the build details on ${env.BUILD_URL}"
}
failure {
mail to: '[email protected]',
subject: "[jenkins] Build failed: ${currentBuild.fullDisplayName}",
body: "See the build details on ${env.BUILD_URL}"
}
fixed {
mail to: '[email protected]',
subject: "[jenkins] Build is again successfull: ${currentBuild.fullDisplayName}",
body: "See the build details on ${env.BUILD_URL}"
}
}
}