[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible Arch Linux: determine package version where it's straightforward to do

Holger Levsen holger at layer-acht.org
Wed Nov 29 15:12:10 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 16a07e875a58663d7887c24e4eb33f82b024a8a3
Author: Holger Levsen <holger at layer-acht.org>
Date:   Wed Nov 29 15:08:55 2017 +0000

    reproducible Arch Linux: determine package version where it's straightforward to do
    
    Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
 bin/reproducible_html_archlinux.sh | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/bin/reproducible_html_archlinux.sh b/bin/reproducible_html_archlinux.sh
index ada6d31..13d77cd 100755
--- a/bin/reproducible_html_archlinux.sh
+++ b/bin/reproducible_html_archlinux.sh
@@ -52,6 +52,17 @@ for REPOSITORY in $ARCHLINUX_REPOS ; do
 			echo "     <tr>" >> $HTML_BUFFER
 			echo "      <td>$REPOSITORY</td>" >> $HTML_BUFFER
 			echo "      <td>$PKG</td>" >> $HTML_BUFFER
+			if [ $(ls "$ARCHLINUX_PKG_PATH/*.pkg.tar.xz.html" 2>/dev/null | wc -l) -eq 1 ] ; then
+			# only determine version if there is exactly one artifact...
+			# else it's too error prone and in future the version will
+			# be determined during build anyway...
+				ARTIFACT="$(cd $ARCHLINUX_PKG_PATH/ ; ls *.pkg.tar.xz.html 2>/dev/null)"
+				VERSION="$( echo $ARTIFACT | sed -s 's#bash-##' | sed -s 's#-x86_64.pkg.tar.xz.html##' )"
+			else
+				VERSION="0.rb-unknown-1"
+			fi
+			echo "      <td>$VERSION</td>" >> $HTML_BUFFER
+
 			echo "      <td>" >> $HTML_BUFFER
 			#
 			#
@@ -261,7 +272,7 @@ write_page "    <table><tr><th>repository</th><th>all source packages</th><th>re
 cat $HTML_REPOSTATS >> $PAGE
 rm $HTML_REPOSTATS > /dev/null
 write_page "    </table>"
-write_page "    <table><tr><th>repository</th><th>source package</th><th>test result</th><th>test date</th><th>test duration</th><th>1st build log</th><th>2nd build log</th></tr>"
+write_page "    <table><tr><th>repository</th><th>source package</th><th>version</th><th>test result</th><th>test date</th><th>test duration</th><th>1st build log</th><th>2nd build log</th></tr>"
 # output all HTML snipplets
 for i in UNKNOWN $(for j in $MEMBERS_404 ; do echo 404_$j ; done) $(for j in $MEMBERS_DEPWAIT ; do echo DEPWAIT_$j ; done) $(for j in $MEMBERS_FTBFS ; do echo FTBFS_$j ; done) $(for j in $MEMBERS_FTBR ; do echo FTBR_$j ; done) GOOD ; do
 	for REPOSITORY in $ARCHLINUX_REPOS ; do

-- 
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