1
0
mirror of https://github.com/containous/traefik.git synced 2024-12-23 17:34:13 +03:00
traefik/.semaphoreci/vars

38 lines
501 B
Plaintext
Raw Normal View History

2017-05-04 16:23:04 +03:00
#!/usr/bin/env bash
set -e
export REPO='containous/traefik'
if VERSION=$(git describe --exact-match --abbrev=0 --tags);
then
export VERSION
else
export VERSION=''
fi
2018-07-09 17:54:04 +03:00
export CODENAME=maroilles
2017-05-04 16:23:04 +03:00
export N_MAKE_JOBS=2
2017-05-09 10:19:12 +03: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}"
sleep $NSLEEP
done
[ $n -lt $NRETRY ]
}
export -f ci_retry