anchor.diff:  # This is used by docker slaves to get the actual jenkins URL
   # in case jenkins is behind a load-balancer or a reverse proxy
   #
  -# JENKINS_IP_FOR_SLAVES will be evaluated in the following order: 
  -#    $JENKINS_ENV_HOST_IP || 
  -#    $(eval $JENKINS_ENV_HOST_IP_CMD) || 
  +# JENKINS_IP_FOR_SLAVES will be evaluated in the following order:
  +#    $JENKINS_ENV_HOST_IP ||
  +#    $(eval $JENKINS_ENV_HOST_IP_CMD) ||
   #    ''
   #ENV JENKINS_ENV_HOST_IP=<REAL_IP>
   #ENV JENKINS_ENV_HOST_IP_CMD='<command to fetch ip>'
  
positive.code: COPY init-scripts/* /usr/share/jenkins/ref/init.groovy.d/
  
  RUN cd /usr/share/jenkins/ref/init.groovy.d/ && \
      for f in *.groovy; do mv "$f" "${f}.override"; done 
  
  # Add configuration handlers groovy scripts
  COPY config-handlers /usr/share/jenkins/config-handlers
  
negative.code: 
  COPY update-config.sh /usr/bin/
  
  # Separate between JENKINS_HOME and WORKSPACE dir. Best if we use NFS for JENKINS_HOME
  RUN mkdir -p /jenkins-workspace-home && \
      chown -R jenkins:jenkins /jenkins-workspace-home
  
  