Hello,
I would like to create repositories (not link existing) in a Bamboo yaml-spec, according to the spec ref (https://docs.atlassian.com/bamboo-specs-docs/8.0.4/specs.html?yaml#git-authentication) this should be possible, e.g.
repositories:
- my-repository:
type: git
url: ssh://git@bitbucket.org:my-company/my-repository.git
branch: master
ssh-key: ENCRYPTED_KEY
ssh-key-passphrase: ENCRYPTED_PASSPHRASE
However if the spec is scanned, I receive the following error
Bamboo YAML import failed: Could not determine YAML document version: repositories / [0] / my-repository: Property is required.
Whether meaningful config values or just the dummies above are used, it doesn't matter.
I cannot use linked repos since the yaml spec is generated and it contains 100+ build plans
Are there any ways to configure repositories within Bamboo yaml specs?
Hey Dimitry,
According to https://community.atlassian.com/t5/Bamboo-questions/Confused-by-this-Error-Bamboo-YAML-import-failed-Could-not/qaq-p/1332452 which had a similar error, but the user was trying to achieve a different goal, the issue was related to tabbing.
Based on this, the issue may be your indenting as well
repositories: - my-repository: type: git url: ssh://git@bitbucket.org:my-company/my-repository.git branch: master ssh-key: ENCRYPTED_KEY ssh-key-passphrase: ENCRYPTED_PASSPHRASE
repositories: - my-repository: type: git url: ssh://git@bitbucket.org:my-company/my-repository.git branch: master ssh-key: ENCRYPTED_KEY ssh-key-passphrase: ENCRYPTED_PASSPHRASE
Give that a go and hopefully it helps.
CCM
Hi Craig,
the indentation hint helped, I played around with the spaces and finally got it working
Best regards,
Dimitri
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.