From 2e9d95eb6d884b0fc383a64a255ba95734aed54c Mon Sep 17 00:00:00 2001
From: Holger Levsen
Date: Sun, 28 Sep 2014 09:55:38 +0200
Subject: reproducible: link all diffp files from stats page
---
TODO | 2 +-
bin/reproducible_build.sh | 2 ++
bin/reproducible_stats.sh | 9 ++++++++-
job-cfg/reproducible.yaml | 34 ++++++++++++++++++++++++++++++++--
4 files changed, 43 insertions(+), 4 deletions(-)
diff --git a/TODO b/TODO
index 5a6f3126..c31873d4 100644
--- a/TODO
+++ b/TODO
@@ -99,13 +99,13 @@ general
=== reproducible
-* copy diffp files away and make them accessable and link them from stats.html
* use git repo in job config?
* use 2 job templates
* document this on https://wiki.debian.org/ReproducibleBuilds
* investigate packages not in sid from https://jenkins.debian.net/view/reproducible/job/reproducible_build_d-i/lastBuild/console - the list was taken from the jenkins d-i jobs...
* pbuilder results cleanup
* pbuilder cleanup cache
+* cleanup userContent/diffp/
** graph number of reproducible packages
=== Test Debian live
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index 6c2011f0..30f4feb4 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -93,9 +93,11 @@ for SRCPACKAGE in $PACKAGES ; do
set -e
cat b1/${SRCPACKAGE}_*.changes
mkdir -p results/_success
+ mkdir -p /var/lib/jenkins/userContent/diffp/
LOGFILE=$(ls ${SRCPACKAGE}_*.dsc)
LOGFILE=$(echo ${LOGFILE%.dsc}.diffp)
./misc.git/diffp b1/${SRCPACKAGE}_*.changes b2/${SRCPACKAGE}_*.changes | tee ./results/${LOGFILE}
+ cp ./results/${LOGFILE} /var/lib/jenkins/userContent/diffp/
if ! $(grep -qv '^\*\*\*\*\*' ./results/${LOGFILE}) ; then
mv ./results/${LOGFILE} ./results/_success/
figlet ${SRCPACKAGE}
diff --git a/bin/reproducible_stats.sh b/bin/reproducible_stats.sh
index cf49e125..f1ed81cf 100755
--- a/bin/reproducible_stats.sh
+++ b/bin/reproducible_stats.sh
@@ -32,4 +32,11 @@ echo
echo "$COUNT_UGLY packages failed to build from source: ${UGLY}"
echo "$COUNT_SOURCELESS packages doesn't exist in sid and need investigation: $SOURCELESS"
-echo "Hello world
" > inde.html
+echo "Hello World
" > index.html
+for PKG in $BAD ; do
+ VERSION=$(sqlite3 $PACKAGES_DB "SELECT version FROM source_packages WHERE name = \"$PKG\"")
+ echo "- diffp output for $PKG
" >> index.html
+done
+echo "
" >> index.html
+
+
diff --git a/job-cfg/reproducible.yaml b/job-cfg/reproducible.yaml
index 8fbfc27e..8c1638df 100644
--- a/job-cfg/reproducible.yaml
+++ b/job-cfg/reproducible.yaml
@@ -44,6 +44,36 @@
unstable-on-warning: 'true'
fail-on-error: 'true'
+- defaults:
+ name: reproducible_setup
+ triggers:
+ - timed: "{my_timed}"
+ project-type: freestyle
+ properties:
+ - sidebar:
+ url: https://jenkins.debian.net/userContent/about.html
+ text: About jenkins.debian.net
+ icon: /userContent/images/debian-swirl-24x24.png
+ - sidebar:
+ url: https://jenkins.debian.net/view/reproducible
+ text: reproducible builds jobs
+ icon: /userContent/images/debian-jenkins-24x24.png
+ - sidebar:
+ url: http://www.profitbricks.com
+ text: Sponsored by Profitbricks
+ icon: /userContent/images/profitbricks-24x24.png
+ description: '{my_description}{my_packages}
Job configuration source is reproducible.yaml.'
+ logrotate:
+ daysToKeep: 365
+ numToKeep: 20
+ artifactDaysToKeep: -1
+ artifactNumToKeep: -1
+ builders:
+ - shell: '{my_shell}'
+ publishers:
+ - email:
+ recipients: 'jenkins+debian-reproducible holger@layer-acht.org reproducible-commits@lists.alioth.debian.org'
+
- defaults:
name: reproducible_stats
triggers:
@@ -69,7 +99,7 @@
artifactDaysToKeep: -1
artifactNumToKeep: -1
builders:
- - shell: '{my_shell} {my_packages}'
+ - shell: '{my_shell}'
publishers:
- email:
recipients: 'jenkins+debian-reproducible holger@layer-acht.org reproducible-commits@lists.alioth.debian.org'
@@ -80,7 +110,7 @@
keepall: True
- job-template:
- defaults: reproducible_stats
+ defaults: reproducible_setup
name: '{name}_setup'
- job-template:
--
cgit v1.2.3-70-g09d2