ubable to add a STASH/BITBUCKET_SERVER repository in bamboo using bamboo cli

Hello,

I am trying to add a bitbucket_server repository using Bamboo-cli. But it is erroring out with the following message:

Any help would be highly appreciated.

CLI Command:

-a addRepository --plan "PIL-PL12" --name stash-example --repositoryKey STASH --field1 repository.stash.projectKey --value1 TEST --field2 repository.stash.repositoryId --value2 1 --field3 repository.stash.repositorySlug --value3 sample-repo --field4 repository.stash.server --value4 Bitbucket --field5 branch --value5 master --field6 repository.stash.repositoryUrl --value6 http://admin@localhost:7990/scm/test/sample-repo.git

Error:


Client error: Could not check if existing access key is valid: id must be a valid java.util.UUID string: Bitbucket
org.swift.common.cli.CliClient$ClientException: Could not check if existing access key is valid: id must be a valid java.util.UUID string: Bitbucket
at org.swift.bamboo.cli.helpers.RepositoryHelper.addOrUpdateRepository(RepositoryHelper.java:253)
at org.swift.bamboo.cli.BambooClient.handleRequest(BambooClient.java:860)
at org.swift.common.cli.DefaultRemoteClient.process(DefaultRemoteClient.java:506)
at org.swift.common.cli.CliClient.doWork(CliClient.java:572)
at org.swift.common.cli.CliClient.doWork(CliClient.java:704)
at org.swift.common.cli.CliClient.doWork(CliClient.java:688)
at org.swift.common.cli.CliClient.processRunLine(CliClient.java:1601)
at org.swift.common.cli.DefaultRemoteClient.processRunLine(DefaultRemoteClient.java:708)
at org.swift.common.cli.CliClient.doSingleRunLine(CliClient.java:1541)
at org.swift.common.cli.CliClient.run(CliClient.java:1396)
at org.swift.bamboo.cli.BambooClient.handleRequest(BambooClient.java:595)
at org.swift.common.cli.DefaultRemoteClient.process(DefaultRemoteClient.java:506)
at org.swift.common.cli.CliClient.doWork(CliClient.java:572)
at org.swift.bamboo.cli.BambooClient.main(BambooClient.java:349)
Client error: 1 actions failed from file: C:\Honeywell_CI_CD\scripts\test.txt
org.swift.common.cli.CliClient$ClientException: 1 actions failed from file: C:\Honeywell_CI_CD\scripts\test.txt
at org.swift.common.cli.CliClient.run(CliClient.java:1478)
at org.swift.bamboo.cli.BambooClient.handleRequest(BambooClient.java:595)
at org.swift.common.cli.DefaultRemoteClient.process(DefaultRemoteClient.java:506)
at org.swift.common.cli.CliClient.doWork(CliClient.java:572)
at org.swift.bamboo.cli.BambooClient.main(BambooClient.java:349)

 

Thanks In Advance :)

1 answer

Hi Sugendh,

Can you please let us know if you perform the action using the GUI you are facing the same issue, seems to be an already existing issue reported  https://jira.atlassian.com/browse/BAM-17421

Regards,

Vijay Ramamurthy

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Confluence

Color tables for a shiny Confluence page

...; ## Developed by: Alana Fernando ## Shared with love ## @param style:title=style type|type=enum|required=true|desc=Choose a style.|enumValues=Style1,Style2,Style3,Style4,Style5 ## @param alignment:title...

139 views 8 10
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you