Allow to trigger a build for a branch with a button (without having to push some commits)
I found that you can manually trigger a build by following these steps:
In Bitbucket, view a repository.
From the left navigation pane, select Pipelines.
The list of builds will appear on the right. You can select a specific branch to see just the builds for that branch.
Click one of the builds to see more information.
Click the Re-run button (circular arrow) just to the right of the build status.
It's not clear to me whether re-running a build may have unintended consequences (e.g., using an older version of the bitbucket-pipelines.yml configuration).
Either way, it would be nice to have a "Build Now" button at the top (i.e., branch) level.
Re-running a build will use the yml file at the commit version that is being rerun. Of course if there's a newer version of the yml file there will be a newer commit which you could rerun instead :)
Also re-running will not affect the existing result. It creates a new pipeline with a new result.
A build now button would still be useful in some scenarios. Thanks for the feedback.
That's not 100% true. Re-running can affect the existing result.
For example if the projects works with version ranges or "LATEST" to resolve the dependencies or some of the external systems have been changed. Downloading resources from a private repository might return the wrong version because of configuration issues on the repostitory.
These issues can be fixed on the external system, but to restart the build a fake commit is required. A "build now" button would be really welcome!
Issue #13427 was marked as a duplicate of this issue.