Skip to content
Commits on Source (3)
......@@ -31,9 +31,12 @@ update_mock() {
local STAMP="${RPM_STAMPS}-$RELEASE-$ARCH"
touch -d "$(date -u -d "6 hours ago" '+%Y-%m-%d %H:%M') UTC" $DUMMY
if [ ! -f $STAMP ] || [ $DUMMY -nt $STAMP ] ; then
echo "$(date -u ) - updating mock for $RELEASE ($ARCH) on $HOSTNAME now..."
mock -r $RELEASE-$ARCH --uniqueext=$UNIQUEEXT --resultdir=. --cleanup-after -v --update 2>&1
echo "$(date -u ) - mock updated."
if [ "$MODE" != "master" ] ; then
# mock is only used on the build node
echo "$(date -u ) - updating mock for $RELEASE ($ARCH) on $HOSTNAME now..."
mock -r $RELEASE-$ARCH --uniqueext=$UNIQUEEXT --resultdir=. --cleanup-after -v --update 2>&1
echo "$(date -u ) - mock updated."
fi
case $RELEASE in
fedora-23) RELVER=23 ;;
*) echo "Unsupported release $RELEASE, please fix this script." ; exit 1 ;;
......@@ -222,7 +225,7 @@ ARCH="$2"
UNIQUEEXT="mock${JOB_NAME#reproducible_builder_${RELEASE}_$ARCH}"
SRCPACKAGE="" # package name
SRC_RPM="" # src rpm file name
#update_mock # FIXME: we dont have to run mock on the main node yet, but we will need at least have to update yum there…
update_mock
choose_package
# build package twice
mkdir b1 b2
......
......@@ -246,11 +246,6 @@ while true ; do
done
# FIXME: TODO left for _service.sh:
# * logs should auto display in browser like with jenkins…
# - mostly done, except one needs to manually scroll down… (could probably be fixed with javascript…)
# * there's also https://jenkins.debian.net/userContent/reproducible/debian/build_service/amd64_1/worker.log (for all the workers…)
# - no automatic reload for that yet, though. and not linked anywhere
# - probably together with build nodes graphs?
# * enabling the service in update_jdn
# * maintenance job might want to:
# - check for running builds using systemctl show & ps fax
......