From f1a6f97d48f90ab381ffc2b485955b842efda363 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Sun, 9 Nov 2014 14:28:56 +0000 Subject: reproducible-json: actually run that script. and status 'unreproducible-with-buildinfo' to .json output --- bin/reproducible_json.sh | 5 +++++ job-cfg/reproducible.yaml | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/bin/reproducible_json.sh b/bin/reproducible_json.sh index 9c38d42d..df2727b5 100755 --- a/bin/reproducible_json.sh +++ b/bin/reproducible_json.sh @@ -26,6 +26,11 @@ for LINE in $RESULT ; do PKG=$(echo $LINE | cut -d "|" -f1) VERSION=$(echo $LINE | cut -d "|" -f2) STATUS=$(echo $LINE | cut -d "|" -f3) + if [ "$STATUS" = "unreproducible" ] ; then + if [ -f /var/lib/jenkins/userContent/buildinfo/${PKG}_${VERSION}_amd64.buildinfo ] ; then + STATUS="$STATUS-with-buildinfo" + fi + fi write_json "{" write_json "\"package\": \"$PKG\"," write_json "\"version\": \"$VERSION\"," diff --git a/job-cfg/reproducible.yaml b/job-cfg/reproducible.yaml index f04af247..cc62af14 100644 --- a/job-cfg/reproducible.yaml +++ b/job-cfg/reproducible.yaml @@ -227,7 +227,7 @@ - '{name}_json': my_description: 'Generates https://jenkins.debian.net/userContent/reproducible.json for consumption by tracker.debian.org.' my_timed: '1 0 * * *' - my_shell: '/srv/jenkins/bin/reproducible_html_all_packages.sh' + my_shell: '/srv/jenkins/bin/reproducible_json.sh' my_recipients: 'holger@layer-acht.org' - '{name}_builder_alpha': my_description: 'Try to reproducibly build a scheduled package. This is one of several builder jobs.' -- cgit v1.2.3-54-g00ecf