forked from mirrors/nixpkgs
jenkins: add update script
This commit is contained in:
parent
c15006d410
commit
b6421bfec4
1 changed files with 13 additions and 0 deletions
13
pkgs/development/tools/continuous-integration/jenkins/update.sh
Executable file
13
pkgs/development/tools/continuous-integration/jenkins/update.sh
Executable file
|
@ -0,0 +1,13 @@
|
|||
#!/usr/bin/env nix-shell
|
||||
#!nix-shell -i bash -p curl common-updater-scripts jq
|
||||
|
||||
set -eu -o pipefail
|
||||
|
||||
core_json="$(curl --fail --location https://updates.jenkins.io/stable/update-center.actual.json | jq .core)"
|
||||
|
||||
version="$(jq -r .version <<<$core_json)"
|
||||
sha256="$(jq -r .sha256 <<<$core_json)"
|
||||
hash="$(nix-hash --type sha256 --to-base32 "$sha256")"
|
||||
url="$(jq -r .url <<<$core_json)"
|
||||
|
||||
update-source-version jenkins "$version" "$hash" "$url"
|
Loading…
Add table
Reference in a new issue