-
Notifications
You must be signed in to change notification settings - Fork 12
/
Jenkinsfile
37 lines (37 loc) · 1.11 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
pipeline {
parameters {
choice(name: 'PLATFORM_FILTER', choices: ['all', 'RHEL', 'Ubuntu'], description: 'Run on specific platform')
}
agent none
stages {
stage('BuildAndTest') {
matrix {
agent {
label "${PLATFORM}-agent"
}
when { anyOf {
expression { params.PLATFORM_FILTER == 'all' }
expression { params.PLATFORM_FILTER == env.PLATFORM }
} }
axes {
axis {
name 'PLATFORM'
values 'RHEL', 'Ubuntu'
}
}
stages {
stage('Build') {
steps {
sh 'src/build/tools/Jenkins_stage_build'
}
}
stage('Test') {
steps {
sh 'src/build/tools/Jenkins_stage_test'
}
}
}
}
}
}
}