commit d6227b7ee6651516539cd45883797d0646f94714
parent b90386e8e13871a5bc8e9c2b46beb0b00417ea91
Author: buckE <buckE@disroot.org>
Date: Wed, 17 Jun 2020 07:20:55 +0000
re-added LINKCHECKER
Diffstat:
2 files changed, 33 insertions(+), 2 deletions(-)
diff --git a/buildbot/linkchecker.sh b/buildbot/linkchecker.sh
@@ -1,6 +1,6 @@
#!/bin/bash
-# Removed because wget is being a bitch:
+# Removed because wget errors with error 8 (Server issued an error response.)
#set -e
## This script will scan www.taler.net for broken links and e-mail a copy of the log if any are found.
@@ -25,7 +25,7 @@ fi
echo
echo "Running this command:"
echo " wget --spider -r -nd -nv -H -l 1 -w 2 -o $logfile https://www.taler.net/"
-wget --spider -r -nd -nv -H -l 1 -w 2 -o $logfile https://www.taler.net/
+wget --spider -r -nd -nv -H -l 1 -w 2 -o $logfile https://www.taler.net/
echo
diff --git a/buildbot/master.cfg b/buildbot/master.cfg
@@ -147,6 +147,16 @@ NIGHTLY_SCHEDULER = schedulers.Nightly(
minute=0
)
+# linkchecker SCHEDULER
+# Run at 9:30am every day.
+LINKCHECKER_SCHEDULER = schedulers.Nightly(
+ name="linkchecker-scheduler",
+ builderNames="linkchecker-builder",
+ branch="master",
+ hour=9,
+ minute=30
+)
+
# buildslavetest SCHEDULER
# Run at 9:15am every day.
BUILDSLAVETEST_SCHEDULER = schedulers.Nightly(
@@ -374,6 +384,19 @@ BUILDMASTER_FACTORY.addStep(
)
)
+# linkchecker FACTORY
+LINKCHECKER_FACTORY = create_factory_with_deployment()
+LINKCHECKER_FACTORY.addStep(
+ ShellCommand(
+ name="linkchecker",
+ description="Check taler.net website for broken links && Notify",
+ descriptionDone="linkchecker links checked",
+ command=["./linkchecker.sh"],
+ workdir="../../deployment/buildbot",
+ haltOnFailure=True
+ )
+)
+
# buildslavetest FACTORY
BUILDSLAVETEST_FACTORY = create_factory_with_deployment()
BUILDSLAVETEST_FACTORY.addStep(
@@ -838,6 +861,14 @@ BUILDMASTER_BUILDER = util.BuilderConfig(
factory=BUILDMASTER_FACTORY
)
+# linkchecker BUILDER
+# worker at linkchecker@taler.net
+LINKCHECKER_BUILDER = util.BuilderConfig(
+ name="linkchecker-builder",
+ workernames="linkchecker-worker",
+ factory=LINKCHECKER_FACTORY
+)
+
# buildslavetest BUILDER
BUILDSLAVETEST_BUILDER = util.BuilderConfig(
name="buildslavetest-builder",