diff --git a/contrib/teamcity/build-configurations.sh b/contrib/teamcity/build-configurations.sh --- a/contrib/teamcity/build-configurations.sh +++ b/contrib/teamcity/build-configurations.sh @@ -42,6 +42,11 @@ export LSAN_OPTIONS="suppressions=${SAN_SUPP_DIR}/lsan:log_path=${SAN_LOG_DIR}/lsan.log" export TSAN_OPTIONS="suppressions=${SAN_SUPP_DIR}/tsan:log_path=${SAN_LOG_DIR}/tsan.log" export UBSAN_OPTIONS="suppressions=${SAN_SUPP_DIR}/ubsan:print_stacktrace=1:halt_on_error=1:log_path=${SAN_LOG_DIR}/ubsan.log" + + # Allow to specify the dbcache value to pass to bitcoind + if [ -n "${DBCACHE}" ]; then + DBCACHE_ARGUMENT="-dbcache=${DBCACHE}" + fi } # Facility to print out sanitizer log outputs to the build log console @@ -112,12 +117,12 @@ build-ibd) "${CI_SCRIPTS_DIR}"/build.sh - "${CI_SCRIPTS_DIR}"/ibd.sh -disablewallet -debug=net + "${CI_SCRIPTS_DIR}"/ibd.sh -disablewallet -debug=net ${DBCACHE_ARGUMENT} ;; build-ibd-no-assumevalid-checkpoint) "${CI_SCRIPTS_DIR}"/build.sh - "${CI_SCRIPTS_DIR}"/ibd.sh -disablewallet -assumevalid=0 -checkpoints=0 -debug=net + "${CI_SCRIPTS_DIR}"/ibd.sh -disablewallet -assumevalid=0 -checkpoints=0 -debug=net ${DBCACHE_ARGUMENT} ;; build-werror)