Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 44b52fc

Browse files
committedApr 28, 2022
Added Debian 11 to CI
1 parent c45d306 commit 44b52fc

File tree

2 files changed

+53
-0
lines changed

2 files changed

+53
-0
lines changed
 

‎ci/jenkins/Dockefile.debian-bullseye

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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"]

‎ci/jenkins/Jenkinsfile.groovy

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,35 @@ pipeline {
256256
}
257257
}
258258
}
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+
}
259288

260289
stage('Debian Testing') {
261290
agent {

0 commit comments

Comments
 (0)
Please sign in to comment.