From e1ec04ef06b171eec4deec6e2c16a4c819fcc3cc Mon Sep 17 00:00:00 2001 From: Bob van de Vijver <bobvandevijver@users.noreply.github.com> Date: Sat, 20 Feb 2021 16:00:55 +0100 Subject: [PATCH] fix: use small delay before posting branch status to gitlab (#8759) (#8771) Co-authored-by: Michael Kriese <michael.kriese@visualon.de> --- lib/platform/gitlab/index.ts | 3 +++ 1 file changed, 3 insertions(+) mode change 100644 => 100755 lib/platform/gitlab/index.ts diff --git a/lib/platform/gitlab/index.ts b/lib/platform/gitlab/index.ts old mode 100644 new mode 100755 index 732bc9fb4c..2803ebda32 --- a/lib/platform/gitlab/index.ts +++ b/lib/platform/gitlab/index.ts @@ -684,6 +684,9 @@ export async function setBranchStatus({ options.target_url = targetUrl; } try { + // give gitlab some time to create pipelines for the sha + await delay(1000); + await gitlabApi.postJson(url, { body: options }); // update status cache -- GitLab