[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible FreeBSD: copy packages back with a tar pipeline
Holger Levsen
holger at layer-acht.org
Fri Mar 3 20:33:35 UTC 2017
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch master
in repository jenkins.debian.net.
commit d41df2b23f17becec1f6a3b47a82925da9b0fa0c
Author: Ed Maste <emaste at freebsd.org>
Date: Fri Mar 3 15:29:48 2017 -0500
reproducible FreeBSD: copy packages back with a tar pipeline
scp -r converts the latest symlink directory into a copy of the target
directory, resulting in two copies of each package.
Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
bin/reproducible_freebsd.sh | 3 ++-
hosts/freebsd-jenkins/usr/local/etc/sudoers | 1 +
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/bin/reproducible_freebsd.sh b/bin/reproducible_freebsd.sh
index 9c4aa8b..472835e 100755
--- a/bin/reproducible_freebsd.sh
+++ b/bin/reproducible_freebsd.sh
@@ -34,7 +34,8 @@ save_freebsd_results() {
$RSSH "sudo find $TMPDIR -newer $TMPDIR -exec touch -d '$DUMMY_DATE' {} \;"
$RSSH "sudo find $TMPDIR -print0 | LC_ALL=C sort -z | sudo tar --no-recursion --null -T - -cJf $TMPDIR.tar.xz"
$RSCP:$TMPDIR.tar.xz $TMPDIR/$RUN/$TARGET_NAME.tar.xz
- $RSCP:/usr/obj/usr/src/repo $TMPDIR/$RUN/
+ # Copy packages back with a tar pipeline
+ $RSSH "sudo tar -C /usr/obj/usr/src -cf - repo" | tar -x -C $TMPDIR/$RUN/ -f -
$RSSH "sudo chflags -R noschg $TMPDIR ; sudo rm -r $TMPDIR $TMPDIR.tar.xz ; mkdir $TMPDIR"
}
diff --git a/hosts/freebsd-jenkins/usr/local/etc/sudoers b/hosts/freebsd-jenkins/usr/local/etc/sudoers
index eb15bb1..79f1ed0 100644
--- a/hosts/freebsd-jenkins/usr/local/etc/sudoers
+++ b/hosts/freebsd-jenkins/usr/local/etc/sudoers
@@ -110,6 +110,7 @@ jenkins ALL= NOPASSWD: /usr/bin/make -j ? buildworld, \
/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, \
+ /usr/bin/tar -C /usr/obj/usr/src -cf - repo \
/usr/sbin/service ntpd start, \
/usr/sbin/service ntpd stop, \
/usr/sbin/service ntpd status, \
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git
More information about the Qa-jenkins-scm
mailing list