Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Tags on bitbucket pipelines is having some issues

Savvy_Webmaster
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 13, 2018

I have the following bitbucket pipelines yml file:

image: php:7.0.31

pipelines:
  tags:
    release-*:
      -step:
        name: Rebuild and release
        script:

          - #does something

 

And I get this error: The 'release-*' section in your bitbucket-pipelines.yml file must be a list.

The documentation shows it as an example and added such tags on git. May you please have a look onto it?

 

Thank you.

1 answer

0 votes
Amelia Bellamy-Royds
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 6, 2018

I trust you've found the problem by now, but for anyone else stumbling upon this issue:

The problem is an error in YAML syntax. To create a list in YAML, each item starts with a `-` character _followed by a space_. If you skip the space, the hyphen (-) is treated as the start of the following string or key name.

When in doubt with YAML syntax, I find this online parser very useful:
http://yaml-online-parser.appspot.com/

You can also use JSON syntax in YAML if you find it easier to avoid mistakes that way.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events