Skip to content

Commit

Permalink
fix: use small delay before posting branch status to gitlab (#8759) (#…
Browse files Browse the repository at this point in the history
…8771)

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
  • Loading branch information
bobvandevijver and viceice committed Feb 20, 2021
1 parent 7118404 commit e1ec04e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/platform/gitlab/index.ts
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e1ec04e

Please sign in to comment.