-
Notifications
You must be signed in to change notification settings - Fork 0
/
JenkinsfileTemplate
49 lines (49 loc) · 1.51 KB
/
JenkinsfileTemplate
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
pipeline {
agent { label 'windows' }
stages {
stage('Executable Build') {
steps {
dir('build') {
deleteDir()
bat 'cmake ..'
bat 'cmake --build .'
bat 'ctest -C Debug'
junit 'reports/**_report*.xml'
}
}
}
stage('Executable Build With Template') {
steps {
dir('build') {
deleteDir()
bat 'cmake .. -DDO_TEMPLATE_COMPONENT_TEST=1'
bat 'cmake --build .'
bat 'ctest -C Debug'
junit 'reports/**_report*.xml'
}
}
}
stage('Static Library Build') {
steps {
dir('build') {
deleteDir()
bat 'cmake .. -DCBX_PLATFORM_CONFIG=../platform_config.static.cmake'
bat 'cmake --build .'
bat 'ctest -C Debug'
junit 'reports/**_report*.xml'
}
}
}
stage('Shared Library Build') {
steps {
dir('build') {
deleteDir()
bat 'cmake .. -DCBX_PLATFORM_CONFIG=../platform_config.shared.cmake'
bat 'cmake --build .'
bat 'ctest -C Debug'
junit 'reports/**_report*.xml'
}
}
}
}
}