I have this Deployment and I'm trying to add a permission for this deployment
---
version: 2
deployment:
name: deploy_name
source-plan: key-key
release-naming:
next-version-name: release-${bamboo.buildNumber}
environments:
- Test
Test:
tasks:
- clean
- artifact-download:
destination: .
- script:
- '#!/bin/bash'
- echo 'ok'
---
version: 2
deployment: deploy_name
environment-permissions:
- Test:
- users:
- administrator
groups:
- group_name
permissions:
- view
- deploy
but I'm getting the error below:
Bamboo YAML import failed: Document structure is incorrect: deployment: Element is of wrong type. Expected MapNode, found StringNode
How I solve this problem? because in the documentation say fo create in different documents.
I tried putting in the same document and get other error:
Bamboo YAML import failed: Invalid format of the YAML file: mapping values are not allowed here
in 'reader', line 94, column 24:
environment-permissions:
^