Skip to content
Snippets Groups Projects
Commit 9741a36b authored by Jessica Clarke's avatar Jessica Clarke Committed by Holger Levsen
Browse files

reproducible_freebsd.sh: Make sure /usr/obj/usr/src is accessible


Also update sudoers to match.

Signed-off-by: default avatarHolger Levsen <holger@layer-acht.org>
parent 259366b4
No related branches found
No related tags found
No related merge requests found
......@@ -98,7 +98,7 @@ for FREEBSD_TARGET in ${FREEBSD_TARGETS} ;do
RSSH="ssh -o Batchmode=yes freebsd-jenkins.debian.net"
RSCP="scp -r freebsd-jenkins.debian.net"
TMPBUILDDIR=/usr/src
$RSSH 'sudo rm -rf /usr/src /usr/obj/usr/src ; sudo mkdir /usr/src ; sudo chown jenkins /usr/src' ### this is tmpfs on linux, we should move this to tmpfs on FreeBSD too
$RSSH 'sudo rm -rf /usr/src /usr/obj/usr/src ; sudo mkdir -p /usr/obj/usr/src ; sudo mkdir /usr/src ; sudo chown jenkins /usr/src /usr/obj/usr/src' ### this is tmpfs on linux, we should move this to tmpfs on FreeBSD too
# Ensure we start with the correct time on the target
$RSSH 'sudo service ntpd stop ; sudo ntpdate -b pool.ntp.org ; sudo service ntpd start'
$RSSH 'sudo service ntpd status ; date -u'
......
......@@ -106,7 +106,8 @@ jenkins ALL= NOPASSWD: /usr/bin/make -j * buildworld, \
/bin/rm -r /srv/reproducible-results/* /srv/reproducible-results/*.tar.xz, \
/bin/chflags -R noschg /srv/reproducible-results/*, \
/bin/mkdir /usr/src, \
/usr/sbin/chown jenkins /usr/src, \
/bin/mkdir -p /usr/obj/usr/src, \
/usr/sbin/chown jenkins /usr/src /usr/obj/usr/src, \
/usr/bin/find /srv/reproducible-results/* -newer /srv/reproducible-results/* -exec touch *, \
/usr/bin/find /srv/reproducible-results/* -print0, \
/usr/bin/tar --no-recursion --null -T - -cJf *.tar.xz, \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment