forked from ess-dmsc/conan-streaming-data-types
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
50 lines (42 loc) · 1.39 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
@Library('ecdc-pipeline')
import ecdcpipeline.ContainerBuildNode
import ecdcpipeline.ConanPackageBuilder
project = "conan-streaming-data-types"
conan_user = "ess-dmsc"
conanPackageChannel = 'testing'
containerBuildNodes = [
'centos': ContainerBuildNode.getDefaultContainerBuildNode('centos7-gcc8'),
'debian9': ContainerBuildNode.getDefaultContainerBuildNode('debian10'),
'ubuntu1804': ContainerBuildNode.getDefaultContainerBuildNode('ubuntu1804-gcc8'),
]
packageBuilder = new ConanPackageBuilder(this, containerBuildNodes, conanPackageChannel)
packageBuilder.defineRemoteUploadNode('centos')
builders = packageBuilder.createPackageBuilders { container ->
packageBuilder.addConfiguration(container)
}
def get_macos_pipeline() {
return {
node('macos') {
cleanWs()
// temporary until we have migrated to official flatbuffers conan package
// in our our repositories, otherwise case difference in package name causes
// conan to fail
sh "conan remove -f FlatBuffers/*"
dir("${project}") {
stage("macOS: Checkout") {
checkout scm
} // stage
stage("macOS: Package") {
sh "conan create . ${conan_user}/${conanPackageChannel} \
--build=outdated"
} // stage
} // dir
} // node
} // return
} // def
node {
checkout scm
builders['macOS'] = get_macos_pipeline()
parallel builders
cleanWs()
}