File tree Expand file tree Collapse file tree 2 files changed +53
-0
lines changed Expand file tree Collapse file tree 2 files changed +53
-0
lines changed Original file line number Diff line number Diff line change
1
+ FROM debian:bullseye
2
+
3
+ MAINTAINER Jarle Aase <jgaa@jgaa.com>
4
+
5
+ # In case you need proxy
6
+ RUN DEBIAN_FRONTEND="noninteractive" apt-get -q update &&\
7
+ DEBIAN_FRONTEND="noninteractive" apt-get -y -q --no-install-recommends upgrade &&\
8
+ DEBIAN_FRONTEND="noninteractive" apt-get install -y -q\
9
+ openssh-server g++ git \
10
+ build-essential \
11
+ zlib1g-dev g++ cmake make libboost-all-dev libssl-dev \
12
+ default-jdk &&\
13
+ apt-get -y -q autoremove &&\
14
+ apt-get -y -q clean
15
+
16
+ # Set user jenkins to the image
17
+ RUN useradd -m -d /home/jenkins -s /bin/sh jenkins &&\
18
+ echo "jenkins:jenkins" | chpasswd
19
+
20
+ # Standard SSH port
21
+ EXPOSE 22
22
+
23
+ # Default command
24
+ CMD ["/usr/sbin/sshd", "-D"]
Original file line number Diff line number Diff line change @@ -256,6 +256,35 @@ pipeline {
256
256
}
257
257
}
258
258
}
259
+
260
+ stage(' Debian Bullseye C++17' ) {
261
+ agent {
262
+ dockerfile {
263
+ filename ' Dockefile.debian-bullseye'
264
+ dir ' ci/jenkins'
265
+ label ' docker'
266
+ }
267
+ }
268
+
269
+ steps {
270
+ echo " Building on debian-bullseye-AMD64 in ${ WORKSPACE} "
271
+ checkout scm
272
+ sh ' pwd; ls -la'
273
+ sh ' rm -rf build'
274
+ sh ' mkdir build'
275
+ sh ' cd build && cmake -DCMAKE_BUILD_TYPE=Release -DRESTC_CPP_USE_CPP17=ON .. && make -j $(nproc)'
276
+
277
+ echo ' Getting ready to run tests'
278
+ script {
279
+ try {
280
+ sh ' cd build && ctest --no-compress-output -T Test'
281
+ } catch (exc) {
282
+ echo ' Testing failed'
283
+ currentBuild. result = ' UNSTABLE'
284
+ }
285
+ }
286
+ }
287
+ }
259
288
260
289
stage(' Debian Testing' ) {
261
290
agent {
You can’t perform that action at this time.
0 commit comments