forked from ufz/ogs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
84 lines (70 loc) · 1.79 KB
/
Jenkinsfile
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
#!/usr/bin/env groovy
@Library('[email protected]') _
def builders = [:]
def helper = new ogs.helper()
timestamps {
builders['gcc'] = {
node('docker') {
dir('ogs') { checkoutWithTags() }
load 'ogs/scripts/jenkins/gcc.groovy'
}
}
builders['gcc-conan'] = {
node('docker') {
dir('ogs') { checkoutWithTags() }
load 'ogs/scripts/jenkins/gcc-conan.groovy'
}
}
builders['gcc-dynamic'] = {
node('envinf1') {
dir('ogs') { checkoutWithTags() }
load 'ogs/scripts/jenkins/gcc-dynamic.groovy'
}
}
builders['msvc'] = {
node('win && conan') {
dir('ogs') { checkoutWithTags() }
load 'ogs/scripts/jenkins/msvc.groovy'
}
}
builders['mac'] = {
node('mac') {
dir('ogs') { checkoutWithTags() }
load 'ogs/scripts/jenkins/mac.groovy'
}
}
if (helper.isRelease(this)) {
builders['msvc32'] = {
node('win && conan') {
dir('ogs') { checkoutWithTags() }
load 'ogs/scripts/jenkins/msvc32.groovy'
}
}
}
builders['docs'] = {
node('docker') {
dir('ogs') { checkoutWithTags() }
load 'ogs/scripts/jenkins/docs.groovy'
}
}
parallel builders
node { step([$class: 'GitHubCommitStatusSetter']) }
if (currentBuild.result == "SUCCESS" || currentBuild.result == "UNSTABLE") {
if (helper.isOriginMaster(this)) {
build job: 'OGS-6/clang-sanitizer', wait: false
def tag = ""
node('master') {
checkoutWithTags()
tag = helper.getTag()
}
if (tag != "") {
keepBuild()
currentBuild.displayName = tag
node('mac') {
dir('ogs') { checkoutWithTags() }
load 'ogs/scripts/jenkins/docset.groovy'
}
}
}
}
} // end timestamps