Debian Codegraph @

Jenkinsfile

raw
1 pipeline {
2 agent none
3 stages {
4 stage('CMake Debug build and unit tests') {
5 agent {
6 docker {
7 image 'juzzlin/qt5-20.04:latest'
8 args '--privileged -t -v $WORKSPACE:/dr2d'
9 }
10 }
11 steps {
12 sh "mkdir -p build-debug"
13 sh "cd build-debug && cmake -DCMAKE_BUILD_TYPE=Debug .."
14 sh "cd build-debug && cmake --build . --target all -- -j3 && ctest --output-on-failure"
15 }
16 }
17 stage('Debian package / Ubuntu 20.04') {
18 agent {
19 docker {
20 image 'juzzlin/qt5-20.04:latest'
21 args '--privileged -t -v $WORKSPACE:/dr2d'
22 }
23 }
24 steps {
25 sh "mkdir -p build-deb-ubuntu-20.04"
26 sh "cd build-deb-ubuntu-20.04 && cmake -D DISTRO_VERSION=Ubuntu-20.04 -D ReleaseBuild=ON -D CMAKE_BUILD_TYPE=Release .. && cmake --build . --target all -- -j3"
27 sh "cd build-deb-ubuntu-20.04 && cpack -G DEB"
28 }
29 post {
30 always {
31 archiveArtifacts artifacts: 'build-deb-ubuntu-20.04/*.deb', fingerprint: true
32 }
33 }
34 }
35 stage('Debian package / Ubuntu 20.04') {
36 agent {
37 docker {
38 image 'juzzlin/qt5-20.04:latest'
39 args '--privileged -t -v $WORKSPACE:/dr2d'
40 }
41 }
42 steps {
43 sh "mkdir -p build-deb-ubuntu-20.04"
44 sh "cd build-deb-ubuntu-20.04 && cmake -D DISTRO_VERSION=Ubuntu-20.04 -D ReleaseBuild=ON -D CMAKE_BUILD_TYPE=Release .. && cmake --build . --target all -- -j3"
45 sh "cd build-deb-ubuntu-20.04 && cpack -G DEB"
46 }
47 post {
48 always {
49 archiveArtifacts artifacts: 'build-deb-ubuntu-20.04/*.deb', fingerprint: true
50 }
51 }
52 }
53 stage('Debian package / Ubuntu 22.04') {
54 agent {
55 docker {
56 image 'juzzlin/qt5-22.04:latest'
57 args '--privileged -t -v $WORKSPACE:/dr2d'
58 }
59 }
60 steps {
61 sh "mkdir -p build-deb-ubuntu-22.04"
62 sh "cd build-deb-ubuntu-22.04 && cmake -D DISTRO_VERSION=Ubuntu-22.04 -D ReleaseBuild=ON -D CMAKE_BUILD_TYPE=Release .. && cmake --build . --target all -- -j3"
63 sh "cd build-deb-ubuntu-22.04 && cpack -G DEB"
64 }
65 post {
66 always {
67 archiveArtifacts artifacts: 'build-deb-ubuntu-22.04/*.deb', fingerprint: true
68 }
69 }
70 }
71 stage('NSIS installer') {
72 agent {
73 docker {
74 image 'juzzlin/mxe-qt6-22.04:latest'
75 args '--privileged -t -v $WORKSPACE:/dr2d'
76 }
77 }
78 steps {
79 sh "./scripts/build-windows-nsis"
80 }
81 post {
82 always {
83 archiveArtifacts artifacts: 'build-windows-nsis/*.exe', fingerprint: true
84 archiveArtifacts artifacts: 'build-windows-nsis/*.zip', fingerprint: true
85 }
86 }
87 }
88 }
89 }
90