Commit 928357e9 authored by Holger Levsen's avatar Holger Levsen

reproducible: run pool_buildinfos via a jenkins job

Signed-off-by: Holger Levsen's avatarHolger Levsen <holger@layer-acht.org>
parent 1012c656
......@@ -79,6 +79,8 @@ elif [[ "$1" =~ ^chroot-installation_.* ]]; then
shift ; exec /srv/jenkins/bin/chroot-installation.sh $@ ; croak "Exec failed"
elif [ "$*" = "reproducible_nodes_info" ] ; then
exec /srv/jenkins/bin/reproducible_info.sh ; croak "Exec failed";
elif [ "$1" = "reproducible_pool_buildinfos" ] ; then
exec /srv/jenkins/bin/reproducible_pool_buildinfos.sh ; croak "Exec failed";
elif [ "$1" = "haskell-package-plan" ] ; then
shift ; exec /srv/jenkins/bin/chroot-run.sh $@ ; croak "Exec failed";
elif [ "$1" = "/srv/jenkins/bin/reproducible_build.sh" ] && ( [ "$2" = "1" ] || [ "$2" = "2" ] ) ; then
......
......@@ -20,7 +20,6 @@ FTPPATH=$BASEPATH/ftp-master.debian.org/buildinfo
POOLPATH=$BASEPATH/buildinfo-pool
PROBLEMS=$(mktemp -t poolize.XXXXXXXX)
mkdir -p $POOLPATH
YEAR="$(date -u +%Y)"
......@@ -28,6 +27,7 @@ MONTH="$(date -u +%m)"
DAY="$(date -u +%d)"
do_day(){
COUNTER=0
MONTHPATH=$FTPPATH/$YEAR/$MONTH
if [ ! -d $MONTHPATH ] ; then
echo "$MONTHPATH does not exist, next."
......@@ -40,7 +40,6 @@ do_day(){
return
fi
cd $DAY
echo "Working on $YEAR/$MONTH/$DAY"
for FILE in * ; do
# echo $FILE
PACKAGE=$(echo $FILE | cut -d '_' -f1)
......@@ -70,6 +69,7 @@ do_day(){
elif [ ! -e "$FULLTARGET" ] && [ -e "$MONTHPATH/$DAY/$FILE" ] ; then
ln -s $MONTHPATH/$DAY/$FILE $FULLTARGET
# echo "$MONTHPATH/$DAY/$FILE linked from $FULLTARGET"
let COUNTER+=1
elif [ ! -e $MONTHPATH/$DAY/$FILE ] ; then
echo "on no $MONTHPATH/$DAY/$FILE does not exist, exiting."
exit 1
......@@ -78,6 +78,7 @@ do_day(){
if [ ! -e "$FULLTARGET.0" ] ; then
ln -s $MONTHPATH/$DAY/$FILE $FULLTARGET.0
echo "$MONTHPATH/$DAY/$FILE linked from $FULLTARGET.0"
let COUNTER+=1
elif [ "$(readlink -f $FULLTARGET.0)" = "$MONTHPATH/$DAY/$FILE" ] ; then
# also ignoring this
:
......@@ -91,6 +92,12 @@ do_day(){
fi
fi
done
echo -n "Done processing $YEAR/$MONTH/$DAY"
if [ $COUNTER -gt 0 ] ; then
echo " - $COUNTER links added."
else
echo
fi
cd ..
}
......
......@@ -802,6 +802,10 @@
my_gitrepo: 'https://salsa.debian.org/reproducible-builds/reproducible-lfs.git'
git_wipe_workspace: false # can't do it as it would otherwise take too much to checkout/clone
my_shell: '/srv/jenkins/bin/reproducible_sync_lfs.sh'
- 'pool_buildinfos'
my_shell: '/srv/jenkins/bin/jenkins_master_wrapper.sh'
my_hname: 'profitbricks7'
my_timed: '30 1,7,13,19 * * *'
my_recipients: 'jenkins+reproducible-builds qa-jenkins-scm@lists.alioth.debian.org'
my_parse_rules: '/srv/jenkins/logparse/reproducible-extra.rules'
my_hname: ''
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment