traefik/.semaphoreci/vars

37 lines
498 B
Text
Raw Normal View History

2017-05-04 15:23:04 +02:00
#!/usr/bin/env bash
set -e
export REPO='traefik/traefik'
2017-05-04 15:23:04 +02:00
if VERSION=$(git describe --exact-match --abbrev=0 --tags);
then
export VERSION
else
export VERSION=''
fi
2020-07-15 20:50:03 +02:00
export CODENAME=picodon
2017-05-04 15:23:04 +02:00
export N_MAKE_JOBS=2
2017-05-09 09:19:12 +02:00
function ci_retry {
local NRETRY=3
local NSLEEP=5
local n=0
until [ $n -ge $NRETRY ]
do
"$@" && break
n=$((n+1))
echo "${*} failed, attempt ${n}/${NRETRY}"
2017-05-09 09:19:12 +02:00
sleep $NSLEEP
done
[ $n -lt $NRETRY ]
}
export -f ci_retry