Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: ff8d252c2dee
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 63c116bc6f24
Choose a head ref
  • 3 commits
  • 2 files changed
  • 2 contributors

Commits on Oct 13, 2018

  1. jenkins: add update script

    bchallenor committed Oct 13, 2018
    Copy the full SHA
    b6421bf View commit details
  2. Copy the full SHA
    88e7d7b View commit details
  3. Merge pull request #48312 from bchallenor/jenkins

    jenkins: 2.138.1 -> 2.138.2
    fpletz authored Oct 13, 2018
    Copy the full SHA
    63c116b View commit details
Showing with 15 additions and 2 deletions.
  1. +2 −2 pkgs/development/tools/continuous-integration/jenkins/default.nix
  2. +13 −0 pkgs/development/tools/continuous-integration/jenkins/update.sh
Original file line number Diff line number Diff line change
@@ -2,11 +2,11 @@

stdenv.mkDerivation rec {
name = "jenkins-${version}";
version = "2.138.1";
version = "2.138.2";

src = fetchurl {
url = "http://mirrors.jenkins.io/war-stable/${version}/jenkins.war";
sha256 = "09svkqii9lv1br0al6wjn1l0fsqf6s7fdrfc0awmfsg8fmjlpf7c";
sha256 = "10qyr8izngnhlr1b03a9vdnbmwprbqsjnd55hjdalmxy6dq5mvfq";
};

buildCommand = ''
13 changes: 13 additions & 0 deletions pkgs/development/tools/continuous-integration/jenkins/update.sh
Original file line number Diff line number Diff line change
@@ -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"