]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Run linkchecker only on Wednesdays
authorMichal Nowak <mnowak@isc.org>
Mon, 5 May 2025 10:57:47 +0000 (12:57 +0200)
committerMichal Nowak <mnowak@isc.org>
Mon, 5 May 2025 14:53:49 +0000 (14:53 +0000)
Some domains tested by linkchecker may think that we connect to them too
often and will refuse connection or reply with and error code, which
makes this job fail. Let's check links only on Wednesdays.

(cherry picked from commit f745a9212a3cb5d938a418a294955886d90e268c)

.gitlab-ci.yml

index f0aa417c78896881c8cbc653f816e33385dd8b50..2cd9e116c159a254eed4e6e274019c605f057992 100644 (file)
@@ -735,6 +735,10 @@ linkcheck:
   <<: *base_image
   stage: docs
   script:
+    # Some domains tested by linkchecker may think that we connect to them too
+    # often and will refuse connection or reply with and error code, which
+    # makes this job fail. Let's check links only on Wednesdays.
+    - if [ "$(date +%w)" != "3" ]; then exit 0; fi
     - pushd doc/arm/ > /dev/null && sphinx-build -b linkcheck . linkcheck_output/
   artifacts:
     paths: