-
Notifications
You must be signed in to change notification settings - Fork 79
Expand file tree
/
Copy pathJenkinsfile
More file actions
37 lines (36 loc) · 1.27 KB
/
Copy pathJenkinsfile
File metadata and controls
37 lines (36 loc) · 1.27 KB
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
pipeline {
agent none
stages {
stage('CMake Debug build and unit tests') {
agent {
docker {
image 'juzzlin/qt6-24.04:latest'
args '--privileged -t -v $WORKSPACE:/dr2d'
}
}
steps {
sh "mkdir -p build-debug"
sh "cd build-debug && cmake -DCMAKE_BUILD_TYPE=Debug -GNinja .."
sh "cd build-debug && cmake --build . && ctest --output-on-failure"
}
}
stage('Debian package / Ubuntu 24.04') {
agent {
docker {
image 'juzzlin/qt6-24.04:latest'
args '--privileged -t -v $WORKSPACE:/dr2d'
}
}
steps {
sh "mkdir -p build-deb-ubuntu-24.04"
sh "cd build-deb-ubuntu-24.04 && cmake -D DISTRO_VERSION=Ubuntu-24.04 -D ReleaseBuild=ON -D CMAKE_BUILD_TYPE=Release -GNinja .. && cmake --build ."
sh "cd build-deb-ubuntu-24.04 && cpack -G DEB"
}
post {
always {
archiveArtifacts artifacts: 'build-deb-ubuntu-24.04/*.deb', fingerprint: true
}
}
}
}
}