diff options
author | Alexander Couzens <lynxis@fe80.eu> | 2016-08-02 15:20:21 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2016-08-02 16:24:25 +0200 |
commit | 4793e76429c8522c64e5bfe9e6896b96ca964635 (patch) | |
tree | f165344f7be07b14f00f5a99a731433510605891 /bin/reproducible_lede.sh | |
parent | 6b30663410f3f1093194e37a3bdd0ed57648fcd8 (diff) | |
download | jenkins.debian.net-4793e76429c8522c64e5bfe9e6896b96ca964635.tar.xz |
reproducible/openwrt|lede: add date to the tempbuilddir
Add a date to the TMPBUILDDIR. Will reduce the possibility of TMPBUILDIR clashes
when using the same directory across multiple nodes.
Signed-off-by: Holger Levsen <holger@layer-acht.org>
Diffstat (limited to 'bin/reproducible_lede.sh')
-rwxr-xr-x | bin/reproducible_lede.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/reproducible_lede.sh b/bin/reproducible_lede.sh index 77ea110a..6b639ff3 100755 --- a/bin/reproducible_lede.sh +++ b/bin/reproducible_lede.sh @@ -43,11 +43,11 @@ esac # # main # -TMPBUILDDIR=$(mktemp --tmpdir=/srv/workspace/chroots/ -d -t rbuild-lede-build-XXXXXXXX) # used to build on tmpfs -TMPDIR=$(mktemp --tmpdir=/srv/reproducible-results -d -t rbuild-lede-results-XXXXXXXX) # accessable in schroots, used to compare results -BANNER_HTML=$(mktemp --tmpdir=$TMPDIR) DATE=$(date -u +'%Y-%m-%d') START=$(date +'%s') +TMPBUILDDIR=$(mktemp --tmpdir=/srv/workspace/chroots/ -d -t rbuild-lede-build-${DATE}-XXXXXXXX) # used to build on tmpfs +TMPDIR=$(mktemp --tmpdir=/srv/reproducible-results -d -t rbuild-lede-results-XXXXXXXX) # accessable in schroots, used to compare results +BANNER_HTML=$(mktemp --tmpdir=$TMPDIR) trap cleanup_tmpdirs INT TERM EXIT cd $TMPBUILDDIR |