commit d7b76197a84106048f010328125ed0b260192672
parent 4049406a797f4194706ad8b6e2b6cdbf24861758
Author: Andreas Gruhler <andreas.gruhler@adfinis.com>
Date: Mon, 20 May 2024 13:09:05 +0200
fix(jenkins): missing jnlp server port
The jnlp agent port (default 50000) needs to be opened on the server
side as well. Otherwise, the agent will not connect to the server.
Diffstat:
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/hcl/default/jenkins/jenkins.nomad b/hcl/default/jenkins/jenkins.nomad
@@ -27,7 +27,7 @@ job "jenkins" {
to = 8080
}
port "jnlp" {
- to = 5000
+ to = 50000
}
port "https" {}
}
@@ -90,7 +90,7 @@ job "jenkins" {
config {
image = "docker.io/jenkins/jenkins:lts-jdk17"
force_pull = true
- ports = ["jenkins"]
+ ports = ["jenkins", "jnlp"]
volumes = [
# mount the templated config from the task directory to the container
"local/jenkins.yaml:/var/jenkins_home/jenkins.yaml",
@@ -104,9 +104,9 @@ job "jenkins" {
resources {
# https://www.jenkins.io/doc/book/installing/docker/#prerequisites
- memory = 512
- memory_max = 1024
- cpu = 300
+ memory = 1024
+ memory_max = 2048
+ cpu = 500
}
}