@@ -37,7 +37,7 @@ pipeline {
37
37
// sh 'pwd; ls -la'
38
38
// sh 'rm -rf build'
39
39
// sh 'mkdir build'
40
- // sh 'cd build && cmake -DCMAKE_BUILD_TYPE=Release .. && make'
40
+ // sh 'cd build && cmake -DCMAKE_BUILD_TYPE=Release .. && make -j $(nproc) '
41
41
//
42
42
// echo 'Getting ready to run tests'
43
43
// script {
@@ -66,64 +66,6 @@ pipeline {
66
66
// sh 'pwd; ls -la'
67
67
// sh 'rm -rf build'
68
68
// sh 'mkdir build'
69
- // sh 'cd build && cmake -DCMAKE_BUILD_TYPE=Release .. && make'
70
- //
71
- // echo 'Getting ready to run tests'
72
- // script {
73
- // try {
74
- // sh 'cd build && ctest --no-compress-output -T Test'
75
- // } catch (exc) {
76
- // echo 'Testing failed'
77
- // currentBuild.result = 'UNSTABLE'
78
- // }
79
- // }
80
- // }
81
- // }
82
-
83
- // stage('Debian Stretch') {
84
- // agent {
85
- // dockerfile {
86
- // filename 'Dockerfile.debian-stretch'
87
- // dir 'ci/jenkins'
88
- // label 'docker'
89
- // }
90
- // }
91
- //
92
- // steps {
93
- // echo "Building on debian-stretch-AMD64 in ${WORKSPACE}"
94
- // checkout scm
95
- // sh 'pwd; ls -la'
96
- // sh 'rm -rf build'
97
- // sh 'mkdir build'
98
- // sh 'cd build && cmake -DCMAKE_BUILD_TYPE=Release .. && make'
99
- //
100
- // echo 'Getting ready to run tests'
101
- // script {
102
- // try {
103
- // sh 'cd build && ctest --no-compress-output -T Test'
104
- // } catch (exc) {
105
- // echo 'Testing failed'
106
- // currentBuild.result = 'UNSTABLE'
107
- // }
108
- // }
109
- // }
110
- // }
111
- //
112
- // stage('Debian Buster') {
113
- // agent {
114
- // dockerfile {
115
- // filename 'Dockefile.debian-buster'
116
- // dir 'ci/jenkins'
117
- // label 'docker'
118
- // }
119
- // }
120
- //
121
- // steps {
122
- // echo "Building on debian-buster-AMD64 in ${WORKSPACE}"
123
- // checkout scm
124
- // sh 'pwd; ls -la'
125
- // sh 'rm -rf build'
126
- // sh 'mkdir build'
127
69
// sh 'cd build && cmake -DCMAKE_BUILD_TYPE=Release .. && make -j $(nproc)'
128
70
//
129
71
// echo 'Getting ready to run tests'
@@ -138,6 +80,64 @@ pipeline {
138
80
// }
139
81
// }
140
82
83
+ stage(' Debian Stretch' ) {
84
+ agent {
85
+ dockerfile {
86
+ filename ' Dockerfile.debian-stretch'
87
+ dir ' ci/jenkins'
88
+ label ' docker'
89
+ }
90
+ }
91
+
92
+ steps {
93
+ echo " Building on debian-stretch-AMD64 in ${ WORKSPACE} "
94
+ checkout scm
95
+ sh ' pwd; ls -la'
96
+ sh ' rm -rf build'
97
+ sh ' mkdir build'
98
+ sh ' cd build && cmake -DCMAKE_BUILD_TYPE=Release .. && make -j $(nproc)'
99
+
100
+ echo ' Getting ready to run tests'
101
+ script {
102
+ try {
103
+ sh ' cd build && ctest --no-compress-output -T Test'
104
+ } catch (exc) {
105
+ echo ' Testing failed'
106
+ currentBuild. result = ' UNSTABLE'
107
+ }
108
+ }
109
+ }
110
+ }
111
+
112
+ stage(' Debian Buster' ) {
113
+ agent {
114
+ dockerfile {
115
+ filename ' Dockefile.debian-buster'
116
+ dir ' ci/jenkins'
117
+ label ' docker'
118
+ }
119
+ }
120
+
121
+ steps {
122
+ echo " Building on debian-buster-AMD64 in ${ WORKSPACE} "
123
+ checkout scm
124
+ sh ' pwd; ls -la'
125
+ sh ' rm -rf build'
126
+ sh ' mkdir build'
127
+ sh ' cd build && cmake -DCMAKE_BUILD_TYPE=Release .. && make -j $(nproc)'
128
+
129
+ echo ' Getting ready to run tests'
130
+ script {
131
+ try {
132
+ sh ' cd build && ctest --no-compress-output -T Test'
133
+ } catch (exc) {
134
+ echo ' Testing failed'
135
+ currentBuild. result = ' UNSTABLE'
136
+ }
137
+ }
138
+ }
139
+ }
140
+
141
141
stage(' Debian Testing' ) {
142
142
agent {
143
143
dockerfile {
@@ -153,7 +153,7 @@ pipeline {
153
153
sh ' pwd; ls -la'
154
154
sh ' rm -rf build'
155
155
sh ' mkdir build'
156
- sh ' cd build && cmake -DCMAKE_BUILD_TYPE=Release .. && make'
156
+ sh ' cd build && cmake -DCMAKE_BUILD_TYPE=Release .. && make -j $(nproc) '
157
157
158
158
echo ' Getting ready to run tests'
159
159
script {
0 commit comments