blob: da10d694858245fec4724532a5a7624902418a22 [file] [log] [blame]
Junxiao Shi439d9722015-03-20 15:08:44 -07001#!/usr/bin/env bash
2set -e
Davide Pesaventod8398822020-03-29 18:46:19 -04003source .jenkins.d/util.sh
Junxiao Shi439d9722015-03-20 15:08:44 -07004
Davide Pesavento8c353902021-08-30 19:10:36 -04005if has Linux $NODE_LABELS; then
Davide Pesavento2c8ec072021-09-30 00:04:23 -04006 export PATH="${HOME}/.local/bin${PATH:+:}${PATH}"
Davide Pesavento8c353902021-08-30 19:10:36 -04007fi
Davide Pesaventod8398822020-03-29 18:46:19 -04008export CACHE_DIR=${CACHE_DIR:-/tmp}
Davide Pesaventoa1a9d702020-03-29 00:58:15 -04009export WAF_JOBS=${WAF_JOBS:-1}
Davide Pesaventod5c24472020-04-01 17:46:18 -040010[[ $JOB_NAME == *"code-coverage" ]] && export DISABLE_ASAN=yes
Davide Pesaventoa1a9d702020-03-29 00:58:15 -040011
Davide Pesaventocbef7b82019-10-09 00:15:13 -040012for file in .jenkins.d/*; do
Junxiao Shi439d9722015-03-20 15:08:44 -070013 [[ -f $file && -x $file ]] || continue
Davide Pesaventocbef7b82019-10-09 00:15:13 -040014
Davide Pesaventoe8c82ef2021-07-28 02:38:51 -040015 if [[ -n $GITHUB_ACTIONS ]]; then
Davide Pesavento2c8ec072021-09-30 00:04:23 -040016 label=$(basename "$file" | sed -E 's/[[:digit:]]+-(.*)\..*/\1/')
Davide Pesaventoe8c82ef2021-07-28 02:38:51 -040017 echo "::group::${label}"
Davide Pesaventocbef7b82019-10-09 00:15:13 -040018 fi
19
20 echo "\$ $file"
Junxiao Shi439d9722015-03-20 15:08:44 -070021 "$file"
Davide Pesaventocbef7b82019-10-09 00:15:13 -040022
Davide Pesaventoe8c82ef2021-07-28 02:38:51 -040023 if [[ -n $GITHUB_ACTIONS ]]; then
24 echo "::endgroup::"
Davide Pesaventocbef7b82019-10-09 00:15:13 -040025 fi
Junxiao Shi439d9722015-03-20 15:08:44 -070026done