From 5f40185125cc99e3e615bf55a052ceb2b77186f3 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Apr 13 2018 15:22:33 +0000 Subject: Do not fail if the post call to pagure times out Signed-off-by: Pierre-Yves Chibon --- diff --git a/.cico.pipeline b/.cico.pipeline index c50cc99..dd0b04d 100644 --- a/.cico.pipeline +++ b/.cico.pipeline @@ -9,7 +9,7 @@ def notifyPagurePR(repo, msg, status, credentials = 'pagure-auth'){ wait for jenkins to be done, so if we wait for pagure's answer we're basically stuck in a loop where both jenkins and pagure are waiting for each other */ - sh "timeout 1 curl -X POST -d \'$json\' https://pagure.io/api/0/ci/jenkins/$repo/${PAGURE_PUSH_SECRET}/build-finished -H \"Content-Type: application/json\"" + sh "timeout 1 curl -X POST -d \'$json\' https://pagure.io/api/0/ci/jenkins/$repo/${PAGURE_PUSH_SECRET}/build-finished -H \"Content-Type: application/json\" | true" } }