From b30e5bfb2709e643003e1ebad4e0f58f99d0b0dd Mon Sep 17 00:00:00 2001 From: "R. Tyler Croy" Date: Tue, 2 Jan 2018 12:13:21 -0800 Subject: [PATCH] Return the agent port to the environment to avoid unnecessary exceptions The upstream Docker image copies this file into tcp-slave-agent-port.groovy (https://github.com/jenkinsci/docker/blob/master/init.groovy) which expects this environment variable to be set. This doesn't really matter in the context of Code Valet, but it's helpful to just shut this error up :smile: Fixes codevalet/codevalet#81 --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index cb7a216..25795e8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -39,6 +39,8 @@ RUN curl -fsSL https://github.com/krallin/tini/releases/download/v${TINI_VERSION && echo "$TINI_SHA /bin/tini" | sha256sum -c - ENV JENKINS_UC https://updates.jenkins.io +ENV JENKINS_SLAVE_AGENT_PORT ${agent_port} + RUN chown -R ${user} "$JENKINS_HOME" /usr/share/jenkins/ref # for main web interface: