-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathJenkinsfile
39 lines (38 loc) · 1.17 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
pipeline {
parameters {
choice(name: 'ARCHITECTURE_FILTER', choices: ['all', 'amd64', 'i386'], description: 'Run on specific architecture')
}
agent none
stages {
stage('BuildAndTest') {
matrix {
agent {
label "${ARCHITECTURE} && bsd"
}
when { anyOf {
expression { params.ARCHITECTURE_FILTER == 'all' }
expression { params.ARCHITECTURE_FILTER == env.ARCHITECTURE }
} }
axes {
axis {
name 'ARCHITECTURE'
values 'amd64', 'i386'
}
}
stages {
stage('Prepare') {
steps {
sh 'make clean'
}
}
stage('Build') {
steps {
echo "Do build for ${ARCHITECTURE}"
sh 'make all'
}
}
}
}
}
}
}