blob: da10d694858245fec4724532a5a7624902418a22 [file] [log] [blame]
Alexander Afanasyev4d4e7252014-10-25 12:21:53 -07001#!/usr/bin/env bash
2set -e
Davide Pesavento69857c32020-04-05 16:36:26 -04003source .jenkins.d/util.sh
Alexander Afanasyev4d4e7252014-10-25 12:21:53 -07004
Davide Pesavento2c61bad2021-08-30 22:40:35 -04005if has Linux $NODE_LABELS; then
Davide Pesaventof28a0612021-09-29 23:13:32 -04006 export PATH="${HOME}/.local/bin${PATH:+:}${PATH}"
Davide Pesavento2c61bad2021-08-30 22:40:35 -04007fi
Davide Pesavento69857c32020-04-05 16:36:26 -04008export CACHE_DIR=${CACHE_DIR:-/tmp}
Davide Pesavento56c68a32020-03-12 19:26:21 -04009export WAF_JOBS=${WAF_JOBS:-1}
Davide Pesavento69857c32020-04-05 16:36:26 -040010[[ $JOB_NAME == *"code-coverage" ]] && export DISABLE_ASAN=yes
Davide Pesavento56c68a32020-03-12 19:26:21 -040011
Davide Pesavento4bd4f712019-10-09 01:02:45 -040012for file in .jenkins.d/*; do
Alexander Afanasyev6077b392014-12-11 22:56:23 -080013 [[ -f $file && -x $file ]] || continue
Davide Pesavento4bd4f712019-10-09 01:02:45 -040014
Davide Pesavento8f0028d2021-07-27 20:01:06 -040015 if [[ -n $GITHUB_ACTIONS ]]; then
Davide Pesaventof28a0612021-09-29 23:13:32 -040016 label=$(basename "$file" | sed -E 's/[[:digit:]]+-(.*)\..*/\1/')
Davide Pesavento8f0028d2021-07-27 20:01:06 -040017 echo "::group::${label}"
Davide Pesavento4bd4f712019-10-09 01:02:45 -040018 fi
19
20 echo "\$ $file"
Alexander Afanasyev6077b392014-12-11 22:56:23 -080021 "$file"
Davide Pesavento4bd4f712019-10-09 01:02:45 -040022
Davide Pesavento8f0028d2021-07-27 20:01:06 -040023 if [[ -n $GITHUB_ACTIONS ]]; then
24 echo "::endgroup::"
Davide Pesavento4bd4f712019-10-09 01:02:45 -040025 fi
Alexander Afanasyev4d4e7252014-10-25 12:21:53 -070026done