[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible: build: use a safer function to generate the random string
Holger Levsen
holger at moszumanska.debian.org
Sat Mar 21 11:55:12 UTC 2015
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 bc1cdaa5bbc418e79d33e7a1dd38a5d3b12fb388
Author: Mattia Rizzolo <mattia at mapreri.org>
Date: Sat Mar 21 12:42:27 2015 +0100
reproducible: build: use a safer function to generate the random string
---
bin/reproducible_build.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index ff950a4..d1713e4 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -26,7 +26,7 @@ create_results_dirs() {
cleanup_all() {
set -x
if [ "$SAVE_ARTIFACTS" = "1" ] ; then
- local random=$(tr -cd '[:alnum:]' < /dev/urandom | fold -w5 | head -1)
+ local random=$(tr -cd '[:alnum:]' < /dev/urandom | head -c5 ; echo)
local ARTIFACTS="artifacts/r00t-me/tmp-${random}/${SUITE}/${SRCPACKAGE}"
mkdir -p /var/lib/jenkins/userContent/$ARTIFACTS
cp -rv $TMPDIR/* /var/lib/jenkins/userContent/$ARTIFACTS/
--
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