Skip to content

Commit

Permalink
Use jenkins-job-builder from nixos-24.05
Browse files Browse the repository at this point in the history
Signed-off-by: Joonas Rautiola <[email protected]>
  • Loading branch information
joinemm committed Dec 9, 2024
1 parent a56e5ab commit 28abc1d
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
17 changes: 17 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
# Nixpkgs
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11";

# jenkins-job-builder is broken on 24.11 currently
nixpkgs-24-05.url = "github:nixos/nixpkgs/nixos-24.05";

# Allows us to structure the flake with the NixOS module system
flake-parts.url = "github:hercules-ci/flake-parts";
flake-root.url = "github:srid/flake-root";
Expand Down
9 changes: 9 additions & 0 deletions hosts/azure/jenkins-controller/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,15 @@ in
];
};

# https://github.com/NixOS/nixpkgs/issues/362054
# Use jenkins-job-builder from nixos-24.05, as it's broken in 24.11.
# Needs to be an overlay so that it propagates to service.jenkins.jobBuilder
nixpkgs.overlays = [
(_: _: {
inherit ((import inputs.nixpkgs-24-05 { inherit (pkgs) system; })) jenkins-job-builder;
})
];

services.jenkins = {
enable = true;
listenAddress = "localhost";
Expand Down

0 comments on commit 28abc1d

Please sign in to comment.