Compare commits
3 commits
87e8868126
...
dca5f9d73e
Author | SHA1 | Date | |
---|---|---|---|
|
dca5f9d73e | ||
|
7ef2b04e83 | ||
ef5da23696 |
1 changed files with 10 additions and 7 deletions
|
@ -21,9 +21,7 @@ merge_theirs () {
|
||||||
}
|
}
|
||||||
|
|
||||||
test_build () {
|
test_build () {
|
||||||
local last_error
|
|
||||||
local build_jobs
|
local build_jobs
|
||||||
local now
|
|
||||||
|
|
||||||
build_jobs="$(curl --fail -s -L -H "Accept: application/json" "${JOBSET_URL}/latest-eval" | jq -r ".builds | .[]")"
|
build_jobs="$(curl --fail -s -L -H "Accept: application/json" "${JOBSET_URL}/latest-eval" | jq -r ".builds | .[]")"
|
||||||
for build in ${build_jobs}; do
|
for build in ${build_jobs}; do
|
||||||
|
@ -43,11 +41,16 @@ test_build () {
|
||||||
echo "Build ${build} was successful"
|
echo "Build ${build} was successful"
|
||||||
done
|
done
|
||||||
|
|
||||||
now="$(date +%s)"
|
# Idk why this is broken someone should fix me
|
||||||
last_error="$(curl --fail -s -L -H "Accept: application/json" "${JOBSET_URL}" | jq -r ".errortime")"
|
# local last_error
|
||||||
[[ $last_error -gt $now ]] &&
|
# local now
|
||||||
echo "Evaluation error encountered at $(date +%Y-%m-%d-%H:%M:%S --date="@${last_error}")" &&
|
#
|
||||||
exit 1
|
# last_error="$(curl --fail -s -L -H "Accept: application/json" "${JOBSET_URL}" | jq -r ".errortime")"
|
||||||
|
# now="$(date +%s)"
|
||||||
|
#
|
||||||
|
# [[ $last_error -gt $now ]] &&
|
||||||
|
# echo "Evaluation error encountered at $(date +%Y-%m-%d-%H:%M:%S --date="@${last_error}")" &&
|
||||||
|
# exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
wait_for_hydra () {
|
wait_for_hydra () {
|
||||||
|
|
Loading…
Reference in a new issue