diff options
| author | Daiderd Jordan <daiderd@gmail.com> | 2018-06-07 01:18:48 +0200 |
|---|---|---|
| committer | Daiderd Jordan <daiderd@gmail.com> | 2018-06-07 01:18:48 +0200 |
| commit | 81169fc83e9dd72de5de561a35d26bb313909f13 (patch) | |
| tree | 2a9a4012f64545528f7da9a988881e3af0fb74f4 /modules | |
| parent | b0a8af6cc991da8047ec6d481a64d0c0e3b27a21 (diff) | |
lnl: add hydra-bad-machines alias
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/examples/lnl.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/examples/lnl.nix b/modules/examples/lnl.nix index 3939d5e..57da845 100644 --- a/modules/examples/lnl.nix +++ b/modules/examples/lnl.nix @@ -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 |
