Skip to content

Commit 92aa818

Browse files
committed
libcouchbase: ensure gdb is installed on the boxes
1 parent 1542a45 commit 92aa818

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

libcouchbase/Jenkinsfile.erb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,11 @@ pipeline {
291291
}
292292
steps {
293293
dir('ws_<%= label %>_x64/build') {
294+
<% if dist == "debian" %>
295+
sh("sudo apt update; sudo apt install -y gdb");
296+
<% else %>
297+
sh("sudo yum install -y gdb");
298+
<% end %>
294299
sh("ulimit -c; cat /proc/sys/kernel/core_pattern || true")
295300
sh("ctest ${VERBOSE.toBoolean() ? '-VV' : ''}")
296301
}
@@ -452,6 +457,7 @@ pipeline {
452457
sh("sed -i s:/home/couchbase/jenkins/workspace/lcb/lcb-scripted-build-pipeline/ws_centos7_x64/build:\$(realpath .):g tests/CTestTestfile.cmake")
453458
sleep(20)
454459
timeout(time: 60, unit: 'MINUTES') {
460+
sh("sudo yum install -y gdb");
455461
sh("ulimit -c; cat /proc/sys/kernel/core_pattern || true")
456462
sh("ctest -E BUILD ${VERBOSE.toBoolean() ? '-VV' : ''}")
457463
}

libcouchbase/lcb-lnx-scripted-build-pipeline.groovy

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ pipeline {
217217
}
218218
steps {
219219
dir('ws_debian9_x64/build') {
220+
sh("sudo apt update; sudo apt install -y gdb");
220221
sh("ulimit -c; cat /proc/sys/kernel/core_pattern || true")
221222
sh("ctest ${VERBOSE.toBoolean() ? '-VV' : ''}")
222223
}
@@ -273,6 +274,7 @@ pipeline {
273274
}
274275
steps {
275276
dir('ws_centos7_x64/build') {
277+
sh("sudo yum install -y gdb");
276278
sh("ulimit -c; cat /proc/sys/kernel/core_pattern || true")
277279
sh("ctest ${VERBOSE.toBoolean() ? '-VV' : ''}")
278280
}
@@ -335,6 +337,7 @@ pipeline {
335337
sh("sed -i s:/home/couchbase/jenkins/workspace/lcb/lcb-scripted-build-pipeline/ws_centos7_x64/build:\$(realpath .):g tests/CTestTestfile.cmake")
336338
sleep(20)
337339
timeout(time: 60, unit: 'MINUTES') {
340+
sh("sudo yum install -y gdb");
338341
sh("ulimit -c; cat /proc/sys/kernel/core_pattern || true")
339342
sh("ctest -E BUILD ${VERBOSE.toBoolean() ? '-VV' : ''}")
340343
}

libcouchbase/lcb-scripted-build-pipeline.groovy

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ pipeline {
217217
}
218218
steps {
219219
dir('ws_debian9_x64/build') {
220+
sh("sudo apt update; sudo apt install -y gdb");
220221
sh("ulimit -c; cat /proc/sys/kernel/core_pattern || true")
221222
sh("ctest ${VERBOSE.toBoolean() ? '-VV' : ''}")
222223
}
@@ -273,6 +274,7 @@ pipeline {
273274
}
274275
steps {
275276
dir('ws_centos7_x64/build') {
277+
sh("sudo yum install -y gdb");
276278
sh("ulimit -c; cat /proc/sys/kernel/core_pattern || true")
277279
sh("ctest ${VERBOSE.toBoolean() ? '-VV' : ''}")
278280
}
@@ -557,6 +559,7 @@ pipeline {
557559
sh("sed -i s:/home/couchbase/jenkins/workspace/lcb/lcb-scripted-build-pipeline/ws_centos7_x64/build:\$(realpath .):g tests/CTestTestfile.cmake")
558560
sleep(20)
559561
timeout(time: 60, unit: 'MINUTES') {
562+
sh("sudo yum install -y gdb");
560563
sh("ulimit -c; cat /proc/sys/kernel/core_pattern || true")
561564
sh("ctest -E BUILD ${VERBOSE.toBoolean() ? '-VV' : ''}")
562565
}

0 commit comments

Comments
 (0)