Running a Bamboo Build when Releasing a Version

Releasing a new version of software usually involves a number of tasks, such as releasing the version in JIRA, building and testing, merging code, creating tags, creating branches, labelling builds, etc. If you have integrated JIRA with Atlassian's Bamboo, you can trigger these tasks to run automatically at the release of a version in JIRA.

When you release a JIRA version, you will have the option of selecting a Bamboo Plan and specifying which Stages in the Plan to run. Releasing the version will run the Plan in Bamboo. If the Plan is successful, the version will be released on JIRA. Otherwise, the version will not be released.

Procedure

To run a Bamboo build when releasing a version:

  1. Log in to JIRA as a project administrator. (A project administrator is someone who has the project-specific permission 'Administer Project', but not necessarily the global permission 'JIRA Administrators'.)
  2. Navigate to Projects > the desired project > the desired version > Release.
    (warning) If you are a JIRA administrator, ensure that you are not in 'Administration' mode, otherwise you will not see the controls described above.
  3. Release the version. The release build dialog will be displayed.
  4. Enter the build details for the release:

    No Build

    Choose this option if you do not want to run a Bamboo build, i.e. you only want to release the version in JIRA.

    New Build

    Choose this option, if you want to run a Bamboo build that has not been started:
    * Using Plan — You can select any Plan in the linked Bamboo instance that you have permission to view (unless your administrator has configured basic HTTP authentication).
    * Stages — You can select the Stages that you want to run for this release. Note, you cannot skip Stages.
    * Build Variables — You can override any global variables or plan variables with your own parameters. See Running a Plan Build Manually in Bamboo.

    Existing Build

    Choose this option, if you want to run a Bamboo build that is in progress and has been paused at an optional Stage:
    * Using Plan — You can select any Plan in the linked Bamboo instance that you have permission to view (unless your administrator has configured basic HTTP authentication).
    * Stages — You can select the Stages that you want to run for this release. Note, you cannot re-run Stages that have been completed nor skip Stages.
    * Build VariablesYou can override any global variables  or plan variables with your own parameters. See Running a Plan Build Manually in Bamboo.

  5. Click Release. The Bamboo build will run. If it is successful, the JIRA version will be released. If not, you can choose to run it again or select a different Plan.

Was this helpful?

Thanks for your feedback!

Why was this unhelpful?

Have a question about this article?

See questions about this article

Powered by Confluence and Scroll Viewport