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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.