-
Notifications
You must be signed in to change notification settings - Fork 5
/
Jenkinsfile
35 lines (34 loc) · 1.21 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
pipeline {
agent none
stages {
stage('Matrix Build') {
matrix {
axes {
axis {
name 'IMAGE'
values 'qt5-20.04', 'qt6-22.04', 'qt6-24.04'
}
axis {
name 'BUILD_TYPE'
values 'Debug', 'Release'
}
}
stages {
stage('Build and Test') {
agent any
steps {
script {
docker.image("juzzlin/${IMAGE}:latest").inside('--privileged -t -v $WORKSPACE:/Argengine') {
def buildDir = "build-${BUILD_TYPE.toLowerCase()}-${IMAGE}"
sh "mkdir -p ${buildDir}"
sh "cd ${buildDir} && cmake -GNinja -DCMAKE_BUILD_TYPE=${BUILD_TYPE} .."
sh "cd ${buildDir} && cmake --build . && ctest"
}
}
}
}
}
}
}
}
}