upstart for jenkins-slave does mkdir after it has tried to use it
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
jenkins (Ubuntu) |
Fix Released
|
Medium
|
James Page | ||
Precise |
Fix Released
|
Medium
|
James Page |
Bug Description
In /etc/init/
pre-start script
[ -r /etc/default/
[ -n "$JENKINS_URL" ] || { stop; exit 0; }
$JENKINS_
mkdir $JENKINS_RUN > /dev/null 2>&1 || true
chown -R $JENKINS_USER $JENKINS_RUN || true
end script
The download-slave.sh script tries to create $JENKINS_
pre-start script
[ -r /etc/default/
[ -n "$JENKINS_URL" ] || { stop; exit 0; }
mkdir $JENKINS_RUN > /dev/null 2>&1 || true
chown -R $JENKINS_USER $JENKINS_RUN || true
$JENKINS_
end script
...then all is well on restart.
Related branches
Changed in jenkins (Ubuntu): | |
status: | New → Confirmed |
importance: | Undecided → Medium |
milestone: | none → ubuntu-12.04-beta-2 |
assignee: | nobody → James Page (james-page) |
Changed in jenkins (Ubuntu Precise): | |
status: | Confirmed → In Progress |
Nice spot Al
I'll upload the fix to precise shortly (I'm going todo a sweepup into Debian as well in the next week or so).