Unable to add a STASH/BITBUCKET_SERVER repository in bamboo using bamboo cli Edited

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
Community showcase
Published 11 hours ago in Jira Ops

Jira Ops Early Access Program Update #1: Announcing our next feature and a new integration

Thanks for signing up for Jira Ops! I’m Matt Ryall, leader for the Jira Ops product team at Atlassian. Since this is a brand new product, we’ll be delivering improvements quickly and sharing updates...

158 views 0 5
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