1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-12-15 17:51:01 +00:00

lnl: add hydra-bad-machines alias

This commit is contained in:
Daiderd Jordan 2018-06-07 01:18:48 +02:00
parent b0a8af6cc9
commit 81169fc83e
No known key found for this signature in database
GPG key ID: D02435D05B810C96

View file

@ -242,6 +242,11 @@
nix repl ''${@:-<nixpkgs>}
}
hydra-bad-machines() {
local url=''${1:-https://hydra.nixos.org}
curl -fsSL -H 'Accept: application/json' $url/queue-runner-status | jq -r '.machines | to_entries | .[] | select(.value.consecutiveFailures>0) | .key'
}
hydra-job-revision() {
local jobseteval job=$1
shift 1