Compare commits
No commits in common. "dca5f9d73eea417c375fed66dba9dfe164aeb19f" and "87e88681267beb7f4e08c0fb79c27bbc07c382a6" have entirely different histories.
dca5f9d73e
...
87e8868126
1 changed files with 7 additions and 10 deletions
|
@ -21,7 +21,9 @@ 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
|
||||||
|
@ -41,16 +43,11 @@ test_build () {
|
||||||
echo "Build ${build} was successful"
|
echo "Build ${build} was successful"
|
||||||
done
|
done
|
||||||
|
|
||||||
# Idk why this is broken someone should fix me
|
now="$(date +%s)"
|
||||||
# local last_error
|
last_error="$(curl --fail -s -L -H "Accept: application/json" "${JOBSET_URL}" | jq -r ".errortime")"
|
||||||
# local now
|
[[ $last_error -gt $now ]] &&
|
||||||
#
|
echo "Evaluation error encountered at $(date +%Y-%m-%d-%H:%M:%S --date="@${last_error}")" &&
|
||||||
# last_error="$(curl --fail -s -L -H "Accept: application/json" "${JOBSET_URL}" | jq -r ".errortime")"
|
exit 1
|
||||||
# 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