From 3fbf10b25e504c0983a07227e47ac70e5bdd1b10 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Thu, 28 Oct 2021 09:48:57 +0200 Subject: [PATCH] copr-be-dev: copr-ping task to always succeed It is acceptable (and sometimes expected) to have non-working staging system. No need to report that to infra team. --- roles/copr/backend/templates/copr-ping-script.sh.j2 | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/roles/copr/backend/templates/copr-ping-script.sh.j2 b/roles/copr/backend/templates/copr-ping-script.sh.j2 index 05de1d558b..f20a4a3d94 100644 --- a/roles/copr/backend/templates/copr-ping-script.sh.j2 +++ b/roles/copr/backend/templates/copr-ping-script.sh.j2 @@ -11,6 +11,16 @@ log() } start_time=$(date +%s) + +#{% if devel %} + +build_id=1 +exit_status=0 +log +exit 0 + +#{% endif %} + output=$(copr build --nowait @copr/copr-ping "$source_rpm_url") build_id=$(echo "$output" | grep 'Created builds:' | cut -d' ' -f3) exit_status=$?