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

This widget could not be displayed.

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
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

128 views 2 0
Join discussion

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