Skip to content

Commit 2e07b0b

Browse files
committedAug 29, 2023
Experimenting with ubuntu
1 parent d9fe0dc commit 2e07b0b

File tree

1 file changed

+421
-421
lines changed

1 file changed

+421
-421
lines changed
 

‎ci/jenkins/Jenkinsfile.groovy

+421-421
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ pipeline {
2323

2424
stage('Build') {
2525
parallel {
26-
// Broken: java.io.IOException: Failed to run image '692f7cce9b970633dba347a9aaf12846429c073f'. Error: docker: Error // response from daemon: OCI runtime create failed: container_linux.go:367: starting container process caused: chdir to cwd ("/home/jenkins/build/workspace/restc-staging") set in config.json failed: permission denied: unknown.
2726
stage('Ubuntu Jammy') {
2827
agent {
2928
dockerfile {
@@ -64,6 +63,7 @@ pipeline {
6463
filename 'Dockefile.ubuntu-jammy'
6564
dir 'ci/jenkins'
6665
label 'docker'
66+
args '-u root'
6767
}
6868
}
6969

@@ -124,447 +124,447 @@ pipeline {
124124
}
125125
}
126126

127-
// stage('Ubuntu Xenial MT CTX') {
128-
// agent {
129-
// dockerfile {
130-
// filename 'Dockefile.ubuntu-xenial'
131-
// dir 'ci/jenkins'
132-
// label 'docker'
133-
// }
134-
// }
135-
//
136-
// options {
137-
// timeout(time: 30, unit: "MINUTES")
138-
// }
139-
//
140-
// steps {
141-
// echo "Building on ubuntu-xenial-AMD64 in ${WORKSPACE}"
142-
// checkout scm
143-
// sh 'pwd; ls -la'
144-
// sh 'rm -rf build'
145-
// sh 'mkdir build'
146-
// sh 'cd build && cmake -DGTEST_TAG=release-1.10.0 -DRESTC_CPP_THREADED_CTX=ON -DCMAKE_BUILD_TYPE=Release -DRESTC_CPP_USE_CPP17=OFF .. && make -j $(nproc)'
147-
//
148-
// echo 'Getting ready to run tests'
149-
// script {
150-
// try {
151-
// sh 'cd build && ctest -E "HTTPS_FUNCTIONAL_TESTS|PROXY_TESTS" --no-compress-output -T Test'
152-
// } catch (exc) {
153-
//
154-
// unstable(message: "${STAGE_NAME} - Testing failed")
155-
// }
156-
// }
157-
// }
158-
// }
159-
//
160-
// stage('Debian Buster C++17') {
161-
// agent {
162-
// dockerfile {
163-
// filename 'Dockefile.debian-buster'
164-
// dir 'ci/jenkins'
165-
// label 'docker'
166-
// }
167-
// }
168-
//
169-
// options {
170-
// timeout(time: 30, unit: "MINUTES")
171-
// }
172-
//
173-
// steps {
174-
// echo "Building on debian-buster-AMD64 in ${WORKSPACE}"
175-
// checkout scm
176-
// sh 'pwd; ls -la'
177-
// sh 'rm -rf build'
178-
// sh 'mkdir build'
179-
// sh 'cd build && cmake -DCMAKE_BUILD_TYPE=Release -DRESTC_CPP_USE_CPP17=ON .. && make -j $(nproc)'
180-
//
181-
// echo 'Getting ready to run tests'
182-
// script {
183-
// try {
184-
// sh 'cd build && ctest --no-compress-output -T Test'
185-
// } catch (exc) {
186-
//
187-
// unstable(message: "${STAGE_NAME} - Testing failed")
188-
// }
189-
// }
190-
// }
191-
// }
192-
//
193-
// stage('Debian Buster C++17 MT CTX') {
194-
// agent {
195-
// dockerfile {
196-
// filename 'Dockefile.debian-buster'
197-
// dir 'ci/jenkins'
198-
// label 'docker'
199-
// }
200-
// }
201-
//
202-
// options {
203-
// timeout(time: 30, unit: "MINUTES")
204-
// }
205-
//
206-
// steps {
207-
// echo "Building on debian-buster-AMD64 in ${WORKSPACE}"
208-
// checkout scm
209-
// sh 'pwd; ls -la'
210-
// sh 'rm -rf build'
211-
// sh 'mkdir build'
212-
// sh 'cd build && cmake -DRESTC_CPP_THREADED_CTX=ON -DCMAKE_BUILD_TYPE=Release -DRESTC_CPP_USE_CPP17=ON .. && make -j $(nproc)'
213-
//
214-
// echo 'Getting ready to run tests'
215-
// script {
216-
// try {
217-
// sh 'cd build && ctest --no-compress-output -T Test'
218-
// } catch (exc) {
219-
//
220-
// unstable(message: "${STAGE_NAME} - Testing failed")
221-
// }
222-
// }
223-
// }
224-
// }
225-
//
226-
// stage('Debian Bullseye C++17') {
227-
// agent {
228-
// dockerfile {
229-
// filename 'Dockefile.debian-bullseye'
230-
// dir 'ci/jenkins'
231-
// label 'docker'
232-
// }
233-
// }
234-
//
235-
//
236-
// options {
237-
// timeout(time: 30, unit: "MINUTES")
238-
// }
239-
//
240-
// steps {
241-
// echo "Building on debian-bullseye-AMD64 in ${WORKSPACE}"
242-
// checkout scm
243-
// sh 'pwd; ls -la'
244-
// sh 'rm -rf build'
245-
// sh 'mkdir build'
246-
// sh 'cd build && cmake -DCMAKE_BUILD_TYPE=Release -DRESTC_CPP_USE_CPP17=ON .. && make -j $(nproc)'
247-
//
248-
// echo 'Getting ready to run tests'
249-
// script {
250-
// try {
251-
// sh 'cd build && ctest --no-compress-output -T Test'
252-
// } catch (exc) {
253-
//
254-
// unstable(message: "${STAGE_NAME} - Testing failed")
255-
// }
256-
// }
257-
// }
258-
// }
259-
//
260-
// stage('Debian Bullseye C++17 MT CTX') {
261-
// agent {
262-
// dockerfile {
263-
// filename 'Dockefile.debian-bullseye'
264-
// dir 'ci/jenkins'
265-
// label 'docker'
266-
// }
267-
// }
268-
//
269-
// options {
270-
// timeout(time: 30, unit: "MINUTES")
271-
// }
272-
//
273-
// steps {
274-
// echo "Building on debian-bullseye-AMD64 in ${WORKSPACE}"
275-
// checkout scm
276-
// sh 'pwd; ls -la'
277-
// sh 'rm -rf build'
278-
// sh 'mkdir build'
279-
// sh 'cd build && cmake -DRESTC_CPP_THREADED_CTX=ON -DCMAKE_BUILD_TYPE=Release -DRESTC_CPP_USE_CPP17=ON .. && make -j $(nproc)'
280-
//
281-
// echo 'Getting ready to run tests'
282-
// script {
283-
// try {
284-
// sh 'cd build && ctest --no-compress-output -T Test'
285-
// } catch (exc) {
286-
//
287-
// unstable(message: "${STAGE_NAME} - Testing failed")
288-
// }
289-
// }
290-
// }
291-
// }
292-
//
293-
// stage('Debian Bookworm, C++17') {
294-
// agent {
295-
// dockerfile {
296-
// filename 'Dockefile.debian-bookworm'
297-
// dir 'ci/jenkins'
298-
// label 'docker'
299-
// }
300-
// }
301-
//
302-
// options {
303-
// timeout(time: 30, unit: "MINUTES")
304-
// }
305-
//
306-
// steps {
307-
// echo "Building on debian-bookworm-AMD64 in ${WORKSPACE}"
308-
// checkout scm
309-
// sh 'pwd; ls -la'
310-
// sh 'rm -rf build'
311-
// sh 'mkdir build'
312-
// sh 'cd build && cmake -DCMAKE_BUILD_TYPE=Release -DRESTC_CPP_USE_CPP17=ON .. && make -j $(nproc)'
313-
//
314-
// echo 'Getting ready to run tests'
315-
// script {
316-
// try {
317-
// sh 'cd build && ctest --no-compress-output -T Test'
318-
// } catch (exc) {
319-
//
320-
// unstable(message: "${STAGE_NAME} - Testing failed")
321-
// }
322-
// }
323-
// }
324-
// }
325-
//
326-
// stage('Debian Bookworm MT CTX C++17') {
327-
// agent {
328-
// dockerfile {
329-
// filename 'Dockefile.debian-bookworm'
330-
// dir 'ci/jenkins'
331-
// label 'docker'
332-
// }
333-
// }
334-
//
335-
// options {
336-
// timeout(time: 30, unit: "MINUTES")
337-
// }
338-
//
339-
// steps {
340-
// echo "Building on debian-bookworm-AMD64 in ${WORKSPACE}"
341-
// checkout scm
342-
// sh 'pwd; ls -la'
343-
// sh 'rm -rf build'
344-
// sh 'mkdir build'
345-
// sh 'cd build && cmake -DRESTC_CPP_THREADED_CTX=ON -DCMAKE_BUILD_TYPE=Release -DRESTC_CPP_USE_CPP17=ON .. && make -j $(nproc)'
346-
//
347-
// echo 'Getting ready to run tests'
348-
// script {
349-
// try {
350-
// sh 'cd build && ctest --no-compress-output -T Test'
351-
// } catch (exc) {
352-
//
353-
// unstable(message: "${STAGE_NAME} - Testing failed")
354-
// }
355-
// }
356-
// }
357-
// }
358-
//
359-
// stage('Debian Testing C++17') {
360-
// agent {
361-
// dockerfile {
362-
// filename 'Dockefile.debian-testing'
363-
// dir 'ci/jenkins'
364-
// label 'docker'
365-
// }
366-
// }
367-
//
368-
// options {
369-
// timeout(time: 30, unit: "MINUTES")
370-
// }
371-
//
372-
// steps {
373-
// echo "Building on debian-testing-AMD64 in ${WORKSPACE}"
374-
// checkout scm
375-
// sh 'pwd; ls -la'
376-
// sh 'rm -rf build'
377-
// sh 'mkdir build'
378-
// sh 'cd build && cmake -DCMAKE_BUILD_TYPE=Release -DRESTC_CPP_USE_CPP17=ON .. && make -j $(nproc)'
379-
//
380-
// echo 'Getting ready to run tests'
381-
// script {
382-
// try {
383-
// sh 'cd build && ctest --no-compress-output -T Test'
384-
// } catch (exc) {
385-
//
386-
// unstable(message: "${STAGE_NAME} - Testing failed")
387-
// }
388-
// }
389-
// }
390-
// }
391-
//
392-
// stage('Debian Testing MT CTX C++17') {
393-
// agent {
394-
// dockerfile {
395-
// filename 'Dockefile.debian-testing'
396-
// dir 'ci/jenkins'
397-
// label 'docker'
398-
// }
399-
// }
400-
//
401-
// options {
402-
// timeout(time: 30, unit: "MINUTES")
403-
// }
404-
//
405-
// steps {
406-
// echo "Building on debian-testing-AMD64 in ${WORKSPACE}"
407-
// checkout scm
408-
// sh 'pwd; ls -la'
409-
// sh 'rm -rf build'
410-
// sh 'mkdir build'
411-
// sh 'cd build && cmake -DRESTC_CPP_THREADED_CTX=ON -DCMAKE_BUILD_TYPE=Release -DRESTC_CPP_USE_CPP17=ON .. && make -j $(nproc)'
412-
//
413-
// echo 'Getting ready to run tests'
414-
// script {
415-
// try {
416-
// sh 'cd build && ctest --no-compress-output -T Test'
417-
// } catch (exc) {
418-
//
419-
// unstable(message: "${STAGE_NAME} - Testing failed")
420-
// }
421-
// }
422-
// }
423-
// }
424-
//
425-
// // stage('Fedora') {
426-
// // agent {
427-
// // dockerfile {
428-
// // filename 'Dockerfile.fedora'
429-
// // dir 'ci/jenkins'
430-
// // label 'docker'
431-
// // }
432-
// // }
433-
// //
434-
// // steps {
435-
// // echo "Building on Fedora in ${WORKSPACE}"
436-
// // checkout scm
437-
// // sh 'pwd; ls -la'
438-
// // sh 'rm -rf build'
439-
// // sh 'mkdir build'
440-
// // sh 'cd build && cmake -DCMAKE_BUILD_TYPE=Release .. && make'
441-
// //
442-
// // echo 'Getting ready to run tests'
443-
// // script {
444-
// // try {
445-
// // sh 'cd build && ctest --no-compress-output -T Test'
446-
// // } catch (exc) {
447-
// //
448-
// // unstable(message: "${STAGE_NAME} - Testing failed")
449-
// // }
450-
// // }
451-
// // }
452-
// // }
453-
// //
454-
// // stage('Centos7') {
455-
// // agent {
456-
// // dockerfile {
457-
// // filename 'Dockerfile.centos7'
458-
// // dir 'ci/jenkins'
459-
// // label 'docker'
460-
// // }
461-
// // }
462-
// //
463-
// // steps {
464-
// // echo "Building on Centos7 in ${WORKSPACE}"
465-
// // checkout scm
466-
// // sh 'pwd; ls -la'
467-
// // sh 'rm -rf build'
468-
// // sh 'mkdir build'
469-
// // sh 'cd build && source scl_source enable devtoolset-7 && cmake -DCMAKE_BUILD_TYPE=Release -DBOOST_ROOT=/opt/boost .. && make'
470-
// //
471-
// // echo 'Getting ready to run tests'
472-
// // script {
473-
// // try {
474-
// // sh 'cd build && ctest --no-compress-output -T Test'
475-
// // } catch (exc) {
476-
// //
477-
// // unstable(message: "${STAGE_NAME} - Testing failed")
478-
// // }
479-
// // }
480-
// // }
481-
// // }
482-
//
483-
// stage('Windows X64 with vcpkg C++17') {
484-
//
485-
// agent {label 'windows'}
486-
//
487-
// options {
488-
// timeout(time: 30, unit: "MINUTES")
489-
// }
490-
//
491-
// steps {
492-
// echo "Building on Windows in ${WORKSPACE}"
493-
// checkout scm
494-
//
495-
// bat script: '''
496-
// PATH=%PATH%;C:\\Program Files\\CMake\\bin;C:\\devel\\vcpkg
497-
// vcpkg install zlib openssl boost-fusion boost-filesystem boost-log boost-program-options boost-asio boost-date-time boost-chrono boost-coroutine boost-uuid boost-scope-exit --triplet x64-windows
498-
// if %errorlevel% neq 0 exit /b %errorlevel%
499-
// rmdir /S /Q build
500-
// mkdir build
501-
// cd build
502-
// cmake -DRESTC_CPP_USE_CPP17=ON -DCMAKE_PREFIX_PATH=C:\\devel\\vcpkg\\installed\\x64-windows\\lib;C:\\devel\\vcpkg\\installed\\x64-windows\\include ..
503-
// if %errorlevel% neq 0 exit /b %errorlevel%
504-
// cmake --build . --config Release
505-
// if %errorlevel% neq 0 exit /b %errorlevel%
506-
// echo "Build is OK"
507-
// '''
508-
//
509-
// echo 'Getting ready to run tests'
510-
// script {
511-
// try {
512-
// bat script: '''
513-
// PATH=%PATH%;C:\\devel\\vcpkg\\installed\\x64-windows\\bin;C:\\Program Files\\CMake\\bin
514-
// cd build
515-
// ctest -C Release
516-
// if %errorlevel% neq 0 exit /b %errorlevel%
517-
// '''
518-
// } catch (exc) {
127+
stage('Ubuntu Xenial MT CTX') {
128+
agent {
129+
dockerfile {
130+
filename 'Dockefile.ubuntu-xenial'
131+
dir 'ci/jenkins'
132+
label 'docker'
133+
}
134+
}
135+
136+
options {
137+
timeout(time: 30, unit: "MINUTES")
138+
}
139+
140+
steps {
141+
echo "Building on ubuntu-xenial-AMD64 in ${WORKSPACE}"
142+
checkout scm
143+
sh 'pwd; ls -la'
144+
sh 'rm -rf build'
145+
sh 'mkdir build'
146+
sh 'cd build && cmake -DGTEST_TAG=release-1.10.0 -DRESTC_CPP_THREADED_CTX=ON -DCMAKE_BUILD_TYPE=Release -DRESTC_CPP_USE_CPP17=OFF .. && make -j $(nproc)'
147+
148+
echo 'Getting ready to run tests'
149+
script {
150+
try {
151+
sh 'cd build && ctest -E "HTTPS_FUNCTIONAL_TESTS|PROXY_TESTS" --no-compress-output -T Test'
152+
} catch (exc) {
153+
154+
unstable(message: "${STAGE_NAME} - Testing failed")
155+
}
156+
}
157+
}
158+
}
159+
160+
stage('Debian Buster C++17') {
161+
agent {
162+
dockerfile {
163+
filename 'Dockefile.debian-buster'
164+
dir 'ci/jenkins'
165+
label 'docker'
166+
}
167+
}
168+
169+
options {
170+
timeout(time: 30, unit: "MINUTES")
171+
}
172+
173+
steps {
174+
echo "Building on debian-buster-AMD64 in ${WORKSPACE}"
175+
checkout scm
176+
sh 'pwd; ls -la'
177+
sh 'rm -rf build'
178+
sh 'mkdir build'
179+
sh 'cd build && cmake -DCMAKE_BUILD_TYPE=Release -DRESTC_CPP_USE_CPP17=ON .. && make -j $(nproc)'
180+
181+
echo 'Getting ready to run tests'
182+
script {
183+
try {
184+
sh 'cd build && ctest --no-compress-output -T Test'
185+
} catch (exc) {
186+
187+
unstable(message: "${STAGE_NAME} - Testing failed")
188+
}
189+
}
190+
}
191+
}
192+
193+
stage('Debian Buster C++17 MT CTX') {
194+
agent {
195+
dockerfile {
196+
filename 'Dockefile.debian-buster'
197+
dir 'ci/jenkins'
198+
label 'docker'
199+
}
200+
}
201+
202+
options {
203+
timeout(time: 30, unit: "MINUTES")
204+
}
205+
206+
steps {
207+
echo "Building on debian-buster-AMD64 in ${WORKSPACE}"
208+
checkout scm
209+
sh 'pwd; ls -la'
210+
sh 'rm -rf build'
211+
sh 'mkdir build'
212+
sh 'cd build && cmake -DRESTC_CPP_THREADED_CTX=ON -DCMAKE_BUILD_TYPE=Release -DRESTC_CPP_USE_CPP17=ON .. && make -j $(nproc)'
213+
214+
echo 'Getting ready to run tests'
215+
script {
216+
try {
217+
sh 'cd build && ctest --no-compress-output -T Test'
218+
} catch (exc) {
219+
220+
unstable(message: "${STAGE_NAME} - Testing failed")
221+
}
222+
}
223+
}
224+
}
225+
226+
stage('Debian Bullseye C++17') {
227+
agent {
228+
dockerfile {
229+
filename 'Dockefile.debian-bullseye'
230+
dir 'ci/jenkins'
231+
label 'docker'
232+
}
233+
}
234+
235+
236+
options {
237+
timeout(time: 30, unit: "MINUTES")
238+
}
239+
240+
steps {
241+
echo "Building on debian-bullseye-AMD64 in ${WORKSPACE}"
242+
checkout scm
243+
sh 'pwd; ls -la'
244+
sh 'rm -rf build'
245+
sh 'mkdir build'
246+
sh 'cd build && cmake -DCMAKE_BUILD_TYPE=Release -DRESTC_CPP_USE_CPP17=ON .. && make -j $(nproc)'
247+
248+
echo 'Getting ready to run tests'
249+
script {
250+
try {
251+
sh 'cd build && ctest --no-compress-output -T Test'
252+
} catch (exc) {
253+
254+
unstable(message: "${STAGE_NAME} - Testing failed")
255+
}
256+
}
257+
}
258+
}
259+
260+
stage('Debian Bullseye C++17 MT CTX') {
261+
agent {
262+
dockerfile {
263+
filename 'Dockefile.debian-bullseye'
264+
dir 'ci/jenkins'
265+
label 'docker'
266+
}
267+
}
268+
269+
options {
270+
timeout(time: 30, unit: "MINUTES")
271+
}
272+
273+
steps {
274+
echo "Building on debian-bullseye-AMD64 in ${WORKSPACE}"
275+
checkout scm
276+
sh 'pwd; ls -la'
277+
sh 'rm -rf build'
278+
sh 'mkdir build'
279+
sh 'cd build && cmake -DRESTC_CPP_THREADED_CTX=ON -DCMAKE_BUILD_TYPE=Release -DRESTC_CPP_USE_CPP17=ON .. && make -j $(nproc)'
280+
281+
echo 'Getting ready to run tests'
282+
script {
283+
try {
284+
sh 'cd build && ctest --no-compress-output -T Test'
285+
} catch (exc) {
286+
287+
unstable(message: "${STAGE_NAME} - Testing failed")
288+
}
289+
}
290+
}
291+
}
292+
293+
stage('Debian Bookworm, C++17') {
294+
agent {
295+
dockerfile {
296+
filename 'Dockefile.debian-bookworm'
297+
dir 'ci/jenkins'
298+
label 'docker'
299+
}
300+
}
301+
302+
options {
303+
timeout(time: 30, unit: "MINUTES")
304+
}
305+
306+
steps {
307+
echo "Building on debian-bookworm-AMD64 in ${WORKSPACE}"
308+
checkout scm
309+
sh 'pwd; ls -la'
310+
sh 'rm -rf build'
311+
sh 'mkdir build'
312+
sh 'cd build && cmake -DCMAKE_BUILD_TYPE=Release -DRESTC_CPP_USE_CPP17=ON .. && make -j $(nproc)'
313+
314+
echo 'Getting ready to run tests'
315+
script {
316+
try {
317+
sh 'cd build && ctest --no-compress-output -T Test'
318+
} catch (exc) {
319+
320+
unstable(message: "${STAGE_NAME} - Testing failed")
321+
}
322+
}
323+
}
324+
}
325+
326+
stage('Debian Bookworm MT CTX C++17') {
327+
agent {
328+
dockerfile {
329+
filename 'Dockefile.debian-bookworm'
330+
dir 'ci/jenkins'
331+
label 'docker'
332+
}
333+
}
334+
335+
options {
336+
timeout(time: 30, unit: "MINUTES")
337+
}
338+
339+
steps {
340+
echo "Building on debian-bookworm-AMD64 in ${WORKSPACE}"
341+
checkout scm
342+
sh 'pwd; ls -la'
343+
sh 'rm -rf build'
344+
sh 'mkdir build'
345+
sh 'cd build && cmake -DRESTC_CPP_THREADED_CTX=ON -DCMAKE_BUILD_TYPE=Release -DRESTC_CPP_USE_CPP17=ON .. && make -j $(nproc)'
346+
347+
echo 'Getting ready to run tests'
348+
script {
349+
try {
350+
sh 'cd build && ctest --no-compress-output -T Test'
351+
} catch (exc) {
352+
353+
unstable(message: "${STAGE_NAME} - Testing failed")
354+
}
355+
}
356+
}
357+
}
358+
359+
stage('Debian Testing C++17') {
360+
agent {
361+
dockerfile {
362+
filename 'Dockefile.debian-testing'
363+
dir 'ci/jenkins'
364+
label 'docker'
365+
}
366+
}
367+
368+
options {
369+
timeout(time: 30, unit: "MINUTES")
370+
}
371+
372+
steps {
373+
echo "Building on debian-testing-AMD64 in ${WORKSPACE}"
374+
checkout scm
375+
sh 'pwd; ls -la'
376+
sh 'rm -rf build'
377+
sh 'mkdir build'
378+
sh 'cd build && cmake -DCMAKE_BUILD_TYPE=Release -DRESTC_CPP_USE_CPP17=ON .. && make -j $(nproc)'
379+
380+
echo 'Getting ready to run tests'
381+
script {
382+
try {
383+
sh 'cd build && ctest --no-compress-output -T Test'
384+
} catch (exc) {
385+
386+
unstable(message: "${STAGE_NAME} - Testing failed")
387+
}
388+
}
389+
}
390+
}
391+
392+
stage('Debian Testing MT CTX C++17') {
393+
agent {
394+
dockerfile {
395+
filename 'Dockefile.debian-testing'
396+
dir 'ci/jenkins'
397+
label 'docker'
398+
}
399+
}
400+
401+
options {
402+
timeout(time: 30, unit: "MINUTES")
403+
}
404+
405+
steps {
406+
echo "Building on debian-testing-AMD64 in ${WORKSPACE}"
407+
checkout scm
408+
sh 'pwd; ls -la'
409+
sh 'rm -rf build'
410+
sh 'mkdir build'
411+
sh 'cd build && cmake -DRESTC_CPP_THREADED_CTX=ON -DCMAKE_BUILD_TYPE=Release -DRESTC_CPP_USE_CPP17=ON .. && make -j $(nproc)'
412+
413+
echo 'Getting ready to run tests'
414+
script {
415+
try {
416+
sh 'cd build && ctest --no-compress-output -T Test'
417+
} catch (exc) {
418+
419+
unstable(message: "${STAGE_NAME} - Testing failed")
420+
}
421+
}
422+
}
423+
}
424+
425+
// stage('Fedora') {
426+
// agent {
427+
// dockerfile {
428+
// filename 'Dockerfile.fedora'
429+
// dir 'ci/jenkins'
430+
// label 'docker'
431+
// }
432+
// }
433+
//
434+
// steps {
435+
// echo "Building on Fedora in ${WORKSPACE}"
436+
// checkout scm
437+
// sh 'pwd; ls -la'
438+
// sh 'rm -rf build'
439+
// sh 'mkdir build'
440+
// sh 'cd build && cmake -DCMAKE_BUILD_TYPE=Release .. && make'
441+
//
442+
// echo 'Getting ready to run tests'
443+
// script {
444+
// try {
445+
// sh 'cd build && ctest --no-compress-output -T Test'
446+
// } catch (exc) {
519447
//
520448
// unstable(message: "${STAGE_NAME} - Testing failed")
521449
// }
522450
// }
523451
// }
524452
// }
525453
//
526-
// stage('Windows X64 with vcpkg MT CTX C++17') {
527-
//
528-
// agent {label 'windows'}
529-
//
530-
// options {
531-
// timeout(time: 30, unit: "MINUTES")
454+
// stage('Centos7') {
455+
// agent {
456+
// dockerfile {
457+
// filename 'Dockerfile.centos7'
458+
// dir 'ci/jenkins'
459+
// label 'docker'
460+
// }
532461
// }
533462
//
534-
// steps {
535-
// echo "Building on Windows in ${WORKSPACE}"
463+
// steps {
464+
// echo "Building on Centos7 in ${WORKSPACE}"
536465
// checkout scm
537-
//
538-
// bat script: '''
539-
// PATH=%PATH%;C:\\Program Files\\CMake\\bin;C:\\devel\\vcpkg
540-
// vcpkg install zlib openssl boost-fusion boost-filesystem boost-log boost-program-options boost-asio boost-date-time boost-chrono boost-coroutine boost-uuid boost-scope-exit --triplet x64-windows
541-
// if %errorlevel% neq 0 exit /b %errorlevel%
542-
// rmdir /S /Q build
543-
// mkdir build
544-
// cd build
545-
// cmake -DRESTC_CPP_THREADED_CTX=ON -DRESTC_CPP_USE_CPP17=ON -DCMAKE_PREFIX_PATH=C:\\devel\\vcpkg\\installed\\x64-windows\\lib;C:\\devel\\vcpkg\\installed\\x64-windows\\include ..
546-
// if %errorlevel% neq 0 exit /b %errorlevel%
547-
// cmake --build . --config Release
548-
// if %errorlevel% neq 0 exit /b %errorlevel%
549-
// echo "Build is OK"
550-
// '''
466+
// sh 'pwd; ls -la'
467+
// sh 'rm -rf build'
468+
// sh 'mkdir build'
469+
// sh 'cd build && source scl_source enable devtoolset-7 && cmake -DCMAKE_BUILD_TYPE=Release -DBOOST_ROOT=/opt/boost .. && make'
551470
//
552471
// echo 'Getting ready to run tests'
553472
// script {
554473
// try {
555-
// bat script: '''
556-
// PATH=%PATH%;C:\\devel\\vcpkg\\installed\\x64-windows\\bin;C:\\Program Files\\CMake\\bin
557-
// cd build
558-
// ctest -C Release
559-
// if %errorlevel% neq 0 exit /b %errorlevel%
560-
// '''
474+
// sh 'cd build && ctest --no-compress-output -T Test'
561475
// } catch (exc) {
562476
//
563477
// unstable(message: "${STAGE_NAME} - Testing failed")
564478
// }
565479
// }
566480
// }
567481
// }
482+
483+
stage('Windows X64 with vcpkg C++17') {
484+
485+
agent {label 'windows'}
486+
487+
options {
488+
timeout(time: 30, unit: "MINUTES")
489+
}
490+
491+
steps {
492+
echo "Building on Windows in ${WORKSPACE}"
493+
checkout scm
494+
495+
bat script: '''
496+
PATH=%PATH%;C:\\Program Files\\CMake\\bin;C:\\devel\\vcpkg
497+
vcpkg install zlib openssl boost-fusion boost-filesystem boost-log boost-program-options boost-asio boost-date-time boost-chrono boost-coroutine boost-uuid boost-scope-exit --triplet x64-windows
498+
if %errorlevel% neq 0 exit /b %errorlevel%
499+
rmdir /S /Q build
500+
mkdir build
501+
cd build
502+
cmake -DRESTC_CPP_USE_CPP17=ON -DCMAKE_PREFIX_PATH=C:\\devel\\vcpkg\\installed\\x64-windows\\lib;C:\\devel\\vcpkg\\installed\\x64-windows\\include ..
503+
if %errorlevel% neq 0 exit /b %errorlevel%
504+
cmake --build . --config Release
505+
if %errorlevel% neq 0 exit /b %errorlevel%
506+
echo "Build is OK"
507+
'''
508+
509+
echo 'Getting ready to run tests'
510+
script {
511+
try {
512+
bat script: '''
513+
PATH=%PATH%;C:\\devel\\vcpkg\\installed\\x64-windows\\bin;C:\\Program Files\\CMake\\bin
514+
cd build
515+
ctest -C Release
516+
if %errorlevel% neq 0 exit /b %errorlevel%
517+
'''
518+
} catch (exc) {
519+
520+
unstable(message: "${STAGE_NAME} - Testing failed")
521+
}
522+
}
523+
}
524+
}
525+
526+
stage('Windows X64 with vcpkg MT CTX C++17') {
527+
528+
agent {label 'windows'}
529+
530+
options {
531+
timeout(time: 30, unit: "MINUTES")
532+
}
533+
534+
steps {
535+
echo "Building on Windows in ${WORKSPACE}"
536+
checkout scm
537+
538+
bat script: '''
539+
PATH=%PATH%;C:\\Program Files\\CMake\\bin;C:\\devel\\vcpkg
540+
vcpkg install zlib openssl boost-fusion boost-filesystem boost-log boost-program-options boost-asio boost-date-time boost-chrono boost-coroutine boost-uuid boost-scope-exit --triplet x64-windows
541+
if %errorlevel% neq 0 exit /b %errorlevel%
542+
rmdir /S /Q build
543+
mkdir build
544+
cd build
545+
cmake -DRESTC_CPP_THREADED_CTX=ON -DRESTC_CPP_USE_CPP17=ON -DCMAKE_PREFIX_PATH=C:\\devel\\vcpkg\\installed\\x64-windows\\lib;C:\\devel\\vcpkg\\installed\\x64-windows\\include ..
546+
if %errorlevel% neq 0 exit /b %errorlevel%
547+
cmake --build . --config Release
548+
if %errorlevel% neq 0 exit /b %errorlevel%
549+
echo "Build is OK"
550+
'''
551+
552+
echo 'Getting ready to run tests'
553+
script {
554+
try {
555+
bat script: '''
556+
PATH=%PATH%;C:\\devel\\vcpkg\\installed\\x64-windows\\bin;C:\\Program Files\\CMake\\bin
557+
cd build
558+
ctest -C Release
559+
if %errorlevel% neq 0 exit /b %errorlevel%
560+
'''
561+
} catch (exc) {
562+
563+
unstable(message: "${STAGE_NAME} - Testing failed")
564+
}
565+
}
566+
}
567+
}
568568
}
569569

570570
post {

0 commit comments

Comments
 (0)
Please sign in to comment.