Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,367,436
Community Members
 
Community Events
168
Community Groups

how to create yml file for build CI pipeline to version control it

currently bamboo CICDplan is configured using the UI

to make it easier to track changes by team members, 

how can I create yml file to version control the build and deployment pipeline?

how to convert the UI task to yml file and add as part of the source code?

1 answer

0 votes

Hi @LayMui-Toh, welcome to the Atlassian Community!

Presumably you have figured this out by now, just in case you are using an older Bamboo version which only supports Bamboo Java Specs - this feature is available as of Bamboo 7.1, you can follow the steps outlined in Exporting existing plan configuration to Bamboo YAML Specs:

In order to export an existing build plan to Bamboo Specs source code:

  1. If you don't have Bamboo Specs project, create one
  2. Go to your build plan and select Actions > Configure plan.
  3. On the plan configuration page, select Actions > View plan as YAML Specs.
  4. Copy generated YAML code to your code editor by putting it into the bamboo-specs/bamboo.yaml file.

To export an existing deployment plan to Bamboo Specs source code:

  1. If you don't have Bamboo Specs project, create one
  2. Go to your deployment project and select ... > Edit project.
  3. On the deployment project configuration page, select ... > View project as YAML Specs.
  4. Copy generated YAML code to your code editor by putting it into the bamboo-specs/bamboo.yaml.

Cheers,
Steffen

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events