blob: da10d694858245fec4724532a5a7624902418a22 [file] [log] [blame]
Alexander Afanasyev21034bf2014-09-02 18:31:53 -07001#!/usr/bin/env bash
Shock Jiang2d8483c2014-10-30 10:15:37 -07002set -e
Davide Pesaventofee7ee32020-04-15 02:45:07 -04003source .jenkins.d/util.sh
Alexander Afanasyev21034bf2014-09-02 18:31:53 -07004
Davide Pesavento90a632b2021-10-04 01:05:24 -04005if has Linux $NODE_LABELS; then
6 export PATH="${HOME}/.local/bin${PATH:+:}${PATH}"
7fi
Davide Pesaventofee7ee32020-04-15 02:45:07 -04008export CACHE_DIR=${CACHE_DIR:-/tmp}
9export WAF_JOBS=${WAF_JOBS:-1}
10[[ $JOB_NAME == *"code-coverage" ]] && export DISABLE_ASAN=yes
Alexander Afanasyev21034bf2014-09-02 18:31:53 -070011
Davide Pesaventofee7ee32020-04-15 02:45:07 -040012for file in .jenkins.d/*; do
Alexander Afanasyev984ca9d2016-12-19 13:09:14 -080013 [[ -f $file && -x $file ]] || continue
Davide Pesaventofee7ee32020-04-15 02:45:07 -040014
Davide Pesavento90a632b2021-10-04 01:05:24 -040015 if [[ -n $GITHUB_ACTIONS ]]; then
Davide Pesaventofee7ee32020-04-15 02:45:07 -040016 label=$(basename "$file" | sed -E 's/[[:digit:]]+-(.*)\..*/\1/')
Davide Pesavento90a632b2021-10-04 01:05:24 -040017 echo "::group::${label}"
Davide Pesaventofee7ee32020-04-15 02:45:07 -040018 fi
19
20 echo "\$ $file"
Alexander Afanasyev984ca9d2016-12-19 13:09:14 -080021 "$file"
Davide Pesaventofee7ee32020-04-15 02:45:07 -040022
Davide Pesavento90a632b2021-10-04 01:05:24 -040023 if [[ -n $GITHUB_ACTIONS ]]; then
24 echo "::endgroup::"
Davide Pesaventofee7ee32020-04-15 02:45:07 -040025 fi
Alexander Afanasyev21034bf2014-09-02 18:31:53 -070026done