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 😄

Fixes codevalet/codevalet#81
This commit is contained in:
R. Tyler Croy 2018-01-02 12:13:21 -08:00
parent 4516b6f4b0
commit b30e5bfb27
No known key found for this signature in database
GPG Key ID: 1426C7DC3F51E16F
1 changed files with 2 additions and 0 deletions

View File

@ -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: