mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 19:55:41 +03:00
nixos/jenkins: force .war (re)extraction at start-up
Or else we might run stale Jenkins.
This commit is contained in:
parent
9c2eb52140
commit
f25b36df3c
1 changed files with 5 additions and 0 deletions
|
@ -128,6 +128,11 @@ in {
|
|||
|
||||
path = cfg.packages;
|
||||
|
||||
# Force .war (re)extraction, or else we might run stale Jenkins.
|
||||
preStart = ''
|
||||
rm -rf ${cfg.home}/war
|
||||
'';
|
||||
|
||||
script = ''
|
||||
${pkgs.jdk}/bin/java -jar ${pkgs.jenkins} --httpPort=${toString cfg.port} ${concatStringsSep " " cfg.extraOptions}
|
||||
'';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue