Enabling repository-stored Bamboo Specs

Storing Bamboo Specs in a repository allows you to keep your project configuration together with the code and automatically publish any code changes. It also gives you access to history of plan specification, and makes it easy to revert to a particular moment in time.

Before you begin

Make sure you have the following: 

  • native Git installed
  • access to Maven central repository

To enable repository-stored Bamboo Specs:

  1. Go to  > Linked repositories
  2. Select your repository. 

    You must use the Bitbucket Server repository type to have Bamboo Specs executed automatically by Bamboo.

  3. In the Bamboo Specs tab, enable Scan for Bamboo Specs.

    Bamboo Specs from this repository will be able to modify your plans and deployments in Bamboo. Make sure that write permissions to this repository are properly set in Bitbucket Server as any commit to this repository will refresh Bamboo configuration.

     

  4. In the Projects section, select which projects Bamboo Specs can access.

    All projects
    Available only for Bamboo administrators. Use this option if you want to have a repository managing multiple build plans and deployment projects in your Bamboo instance. You can also use this option if you want to be able to create new build projects and deployment projects from Bamboo Specs.
    Build projects

    You must have project administrator or Bamboo administrator permissions to add a build project. You can't add new projects here.

    To add a Build project:
      1. From the Bamboo header, click Projects.
      2. Click your project.
      3. In the top-right corner, click Project settings.
      4. In the sidebar, click Bamboo Specs repositories.
      5. Select your repository and click Add

        In case a plan downloads artifacts from another project (the Artifact Downloader task) or triggers builds of plans in another projects (the Dependencies tab on Plan configuration page), you have to grant access to these projects as well.

    Deployment projects

    You must have project administrator or Bamboo administrator permissions to add a deployment project. You can't add new projects here.

    To add a Deployment project:
      1. From the Bamboo header, click Deploy > All Deployment Projects.
      2. Click on your project.
      3. In the top-right corner, click [...] > Edit project.
      4. Click Bamboo Spect repositories.
      5. Select your repository and click Add
        Now, Bamboo Specs from this repository will be able to modify this deployment project and environments.Once you have added your repositories, you can see them listed in the Projects section in Linked repositories. 

 

Last modified on Oct 13, 2017

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.