summary refs log tree commit diff
path: root/nixos/tests
diff options
context:
space:
mode:
authorP. R. d. O <d.ol.rod@tutanota.com>2022-04-01 12:03:29 -0600
committerBjørn Forsman <bjorn.forsman@gmail.com>2022-04-01 22:11:18 +0200
commiteeb3206a29560a6b9ad141b27fa4eec51058e4d7 (patch)
treeb12527c3398336bcab1413104f48483ad8a09538 /nixos/tests
parent63f0c334f0f3c6a584422454c90465101327d03e (diff)
downloadnixpkgs-eeb3206a29560a6b9ad141b27fa4eec51058e4d7.tar
nixpkgs-eeb3206a29560a6b9ad141b27fa4eec51058e4d7.tar.gz
nixpkgs-eeb3206a29560a6b9ad141b27fa4eec51058e4d7.tar.bz2
nixpkgs-eeb3206a29560a6b9ad141b27fa4eec51058e4d7.tar.lz
nixpkgs-eeb3206a29560a6b9ad141b27fa4eec51058e4d7.tar.xz
nixpkgs-eeb3206a29560a6b9ad141b27fa4eec51058e4d7.tar.zst
nixpkgs-eeb3206a29560a6b9ad141b27fa4eec51058e4d7.zip
nixos/jenkinsSlave: install java
Installs Java into the Jenkins agent and allows specifying the JDK/JRE package to use. This is necessary as Jenkins verifies if the agent contains Java installed through the java -fullversion command, which if not, the connection will fail.
Diffstat (limited to 'nixos/tests')
-rw-r--r--nixos/tests/jenkins.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/tests/jenkins.nix b/nixos/tests/jenkins.nix
index cb4207c6e77..265d1a330cd 100644
--- a/nixos/tests/jenkins.nix
+++ b/nixos/tests/jenkins.nix
@@ -90,6 +90,8 @@ import ./make-test-python.nix ({ pkgs, ...} : {
 
     slave.fail("systemctl is-enabled jenkins.service")
 
+    slave.succeed("java -fullversion")
+
     with subtest("jobs are declarative"):
         # Check that jobs are created on disk.
         master.wait_for_unit("jenkins-job-builder")