Rerun button doesn't create a new build even with an open PR

Hello,

I’m unable to use the “Rerun” button. When a build fails due to an intermittent test and I try to rerun it, build status is updated to “not run”. It shows an alert related to “Only build pull requests” option, but the PR is open and PR number is displayed on Job details page.

As a workaround, we had to turn off “Only build pull requests” option temporary to rerun a failed build. But it is not the best solution as we are integrated with SonarCloud and it always requires a PR number to run the analysis.

Thanks in advance,

Tatiane