You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.