diff options
author | Holger Levsen <holger@layer-acht.org> | 2015-08-03 13:50:56 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-08-03 13:50:56 +0200 |
commit | 24ea21a7e847967a579dd6b0df4ea18ad0cc87ca (patch) | |
tree | 20a65f214a7c1cc67cfb748da63b25c0c3dac1d5 | |
parent | 5feffba70c87ab76b2dfccfd05cf08ea1c36bfbb (diff) | |
download | jenkins.debian.net-24ea21a7e847967a579dd6b0df4ea18ad0cc87ca.tar.xz |
create homedirectories for build hosts (needed for jenkins remote nodes)
-rwxr-xr-x | update_jdn.sh | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/update_jdn.sh b/update_jdn.sh index cfd41c05..fd466740 100755 --- a/update_jdn.sh +++ b/update_jdn.sh @@ -57,7 +57,7 @@ if [ "$HOSTNAME" = "jenkins" ] ; then fi # make sure needed directories exists - some directories will not be needed on all hosts... -for directory in /schroots /srv/reproducible-results /srv/d-i /srv/live-build /var/log/jenkins/ ; do +for directory in /schroots /srv/reproducible-results /srv/d-i /srv/live-build /var/log/jenkins/ /srv/jenkins /srv/jenkins/pseudo-hosts ; do if [ ! -d $directory ] ; then sudo mkdir $directory sudo chown jenkins.jenkins $directory @@ -79,6 +79,14 @@ if ! test -h /chroots; then fi fi +# create homedirectories for build hosts (needed for jenkins remote nodes) +case $HOSTNAME in + bpi0|hb0|wbq0|cbxi4pro0) sudo mkdir /srv/jenkins/pseudo-hosts/$HOSTNAME-armhf-rb + sudo chown jenkins.jenkins /srv/jenkins/pseudo-hosts/$HOSTNAME-armhf-rb + ;; + *) ;; +esac + # only on Debian systems if [ -f /etc/debian_version ] ; then if ! test -h /var/cache/pbuilder/build; then |