Step 13 : RUN chmod 744 /usr/local/bin/install-plugins.sh /usr/local/bin/jenkins-support && /usr/local/bin/install-plugins.sh $(cat /home/jenkins/plugins.txt | tr '\n' ' ')
---> Running in 0c5b3aa2bf42
Creating initial locks...
Analyzing war...
/usr/local/bin/install-plugins.sh: line 208: JENKINS_UC: unbound variable
The command '/bin/sh -c chmod 744 /usr/local/bin/install-plugins.sh /usr/local/bin/jenkins-support && /usr/local/bin/install-plugins.sh $(cat /home/jenkins/plugins.txt | tr '\n' ' ')' returned a non-zero code: 1
208: if curl -fsL -o /dev/null "$JENKINS_UC/$jenkinsVersion"; then
$JENKINS_UC is not set anywhere in the script. I'm not sure why this is working for anyone. I have no idea what version install-plugins.sh is, I downloaded it here: https://raw.githubusercontent.com/jenkinsci/docker/master/install-plugins.sh
https://raw.githubusercontent.com/jenkinsci/docker/master/jenkins-support
I fixed the script by adding JENKINS_UC=https://updates.jenkins.io at line 10.
JENKINS_UC is set in the Dockerfile
IMHO it can be closed as "Not a defect"
@oleg-nenashev Why would say it's not a defect to have a /usr/local/bin script that depends on an ENV var to function? That fits my definition of defect.
From what I see it's not a defect in terms of the current image and child
developed according to readme. This env var should be always set.
If you create a hardening pull request which enhances the script, it will
be considered and most probably accepted.
On Jul 24, 2017 19:36, "Michael Bushey" notifications@github.com wrote:
@oleg-nenashev https://github.com/oleg-nenashev Why would say it's not
a defect to have a /usr/local/bin script that depends on an ENV var to
function? That fits my definition of defect.—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/jenkinsci/docker/issues/520#issuecomment-317479858,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AC3IoMenrvY_l4oWaAM_tpOyVyyD6pfPks5sRMgDgaJpZM4OQOi_
.