How to relaunch Github check without pushing new commits?

Labynocle picture Labynocle · Sep 19, 2018 · Viewed 9.5k times · Source

I'm currently using Github with a basic Jenkins integration (with the Github plugin): each time I push something, my Jenkins tests are triggered and the status is reported to Github.

For some dirty reasons (and I know the root cause is here), my tests could randomly fail and then report a failed status to Github (which blocked the possibility to merge the PR: and that's the expected behavior).

Do you know if it's possible to relaunch the tests without pushing a new commit? Because I know if I relaunch the tests, they will pass.

Thanks in advance

Answer

Georgi Sabev picture Georgi Sabev · Mar 29, 2019

Doing git commit --amend and force pushing makes github retrigger all checks. Not perfect but better than closing then reopening the PR.