always update the jobs link
This commit is contained in:
parent
316117a5a2
commit
48336d0e9f
1 changed files with 5 additions and 2 deletions
|
@ -52,15 +52,18 @@ if ! su -c "ls $CUR_DIR" jenkins; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Set up jobs symlink
|
# Move aside old jobs, if present
|
||||||
if [ ! -h /var/lib/jenkins/jobs ]; then
|
if [ ! -h /var/lib/jenkins/jobs ]; then
|
||||||
echo "Installing jobs symlink"
|
echo "Installing jobs symlink"
|
||||||
if [ -d /var/lib/jenkins/jobs ]; then
|
if [ -d /var/lib/jenkins/jobs ]; then
|
||||||
mv /var/lib/jenkins/jobs /var/lib/jenkins/jobs.old
|
mv /var/lib/jenkins/jobs /var/lib/jenkins/jobs.old
|
||||||
fi
|
fi
|
||||||
ln -s $CUR_DIR/jobs /var/lib/jenkins/jobs
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Set up jobs symlink
|
||||||
|
rm -f /var/lib/jenkins/jobs
|
||||||
|
ln -s $CUR_DIR/jobs /var/lib/jenkins/jobs
|
||||||
|
|
||||||
# List of plugins
|
# List of plugins
|
||||||
PLUGINS=http://hudson-ci.org/downloads/plugins/build-timeout/1.6/build-timeout.hpi,http://mirrors.jenkins-ci.org/plugins/git/1.1.12/git.hpi,http://hudson-ci.org/downloads/plugins/global-build-stats/1.2/global-build-stats.hpi,http://hudson-ci.org/downloads/plugins/greenballs/1.10/greenballs.hpi,http://download.hudson-labs.org/plugins/console-column-plugin/1.0/console-column-plugin.hpi
|
PLUGINS=http://hudson-ci.org/downloads/plugins/build-timeout/1.6/build-timeout.hpi,http://mirrors.jenkins-ci.org/plugins/git/1.1.12/git.hpi,http://hudson-ci.org/downloads/plugins/global-build-stats/1.2/global-build-stats.hpi,http://hudson-ci.org/downloads/plugins/greenballs/1.10/greenballs.hpi,http://download.hudson-labs.org/plugins/console-column-plugin/1.0/console-column-plugin.hpi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue