From 618f6bff8132402ee84e1d07ac2e0716d89b4a53 Mon Sep 17 00:00:00 2001 From: Davanum Srinivas Date: Thu, 27 Feb 2014 13:38:47 -0500 Subject: [PATCH] Save md5 and sha1 checksums with artifacts tarballs.openstack.org seems to be missing checksums Change-Id: I5653c8bdbbf45aa74d848d28a8e9c38dc5b3fc17 --- .../jenkins/files/slave_scripts/run-tarball.sh | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/modules/jenkins/files/slave_scripts/run-tarball.sh b/modules/jenkins/files/slave_scripts/run-tarball.sh index 80eb6aba38..c022f28811 100755 --- a/modules/jenkins/files/slave_scripts/run-tarball.sh +++ b/modules/jenkins/files/slave_scripts/run-tarball.sh @@ -25,7 +25,14 @@ source /usr/local/jenkins/slave_scripts/select-mirror.sh $org $project rm -f dist/*.tar.gz tox -evenv python setup.py sdist -echo "SHA1sum: " -sha1sum dist/* -echo "MD5sum: " -md5sum dist/* +FILES=dist/*.tar.gz +for f in $FILES +do + echo "SHA1sum for $f:" + sha1sum $f | awk '{print $1}' > $f.sha1 + cat $f.sha1 + + echo "MD5sum for $f:" + md5sum $f | awk '{print $1}' > $f.md5 + cat $f.md5 +done