Issue #13274 duplicate
Michael Wirth created an issue

Allow to trigger a build for a branch with a button (without having to push some commits)

Comments (6)

  1. Melanie Drake

    I found that you can manually trigger a build by following these steps:

    1. In Bitbucket, view a repository.
    2. From the left navigation pane, select Pipelines.
    3. The list of builds will appear on the right. You can select a specific branch to see just the builds for that branch.
    4. Click one of the builds to see more information.
    5. 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.

  2. Samuel Tannous staff

    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.

  3. Michael Wirth reporter

    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!

  4. Log in to comment