freifunk-berlin / puppet

Deprecated: New infrastructure development is happening in https://github.com/freifunk-berlin/ansible
Other
2 stars 4 forks source link

buildbot.berlin: util script need to be installed. #69

Closed pmelange closed 4 years ago

pmelange commented 4 years ago

The script https://github.com/freifunk-berlin/util.berlin.freifunk.net/blob/master/www/hardware.php should be set up in a cronjob. This script updates the firmware download pages on util.berlin.

pmelange commented 4 years ago

In the end, the script that runs on the server is

#!/bin/bash
PATH=/bin:/usr/bin
cd /usr/local/src/www/htdocs/buildbot
(find . -type f | cut -c 3- ; \
grep "Firmware: git branch" unstable/*/*/VERSION.txt ; \
find . -name "VERSION.txt" -printf "UNIXTIME %C@ %p\n" \
) | lzma > /usr/local/src/www/htdocs/buildbot/.files.lzma.new
mv /usr/local/src/www/htdocs/buildbot/.files.lzma.new /usr/local/src/www/htdocs/buildbot/.files.lzma

and maybe it makes more sense to integrade into the master script, so that it updates after each worker uploads their stuff. This could also be put in combination with removing old devel builds.

pmelange commented 4 years ago

I set up this script, for now, in cron.hourly/buildbot-update-lists

nicolasberens commented 4 years ago

added here: https://github.com/freifunk-berlin/ff_base/commit/e4b39f31d6e2f2a4ffbaee06aa1eed4aef01034c