summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_build.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index 95ac2659..8a6d5624 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -25,8 +25,8 @@ create_results_dirs() {
cleanup_all() {
if [ "$SAVE_ARTIFACTS" = "1" ] ; then
- local hash=$(tr -cd '[:alnum:]' < /dev/urandom | fold -w5 | head -1)
- local ARTIFACTS="artifacts/r00t-me/tmp-${hash}/${SUITE}/${PACKAGE}"
+ local random=$(tr -cd '[:alnum:]' < /dev/urandom | fold -w5 | head -1)
+ local ARTIFACTS="artifacts/r00t-me/tmp-${random}/${SUITE}/${PACKAGE}"
mkdir -p /var/lib/jenkins/userContent/$ARTIFACTS
cp -r $TMPDIR/* /var/lib/jenkins/userContent/$ARTIFACTS/
echo | tee -a ${RBUILDLOG}