bamboo client command, cannot use disablePlan on a plan branch

Greetings,

I wanted to disable a child branch as follows but got an exception that the plan was not found. I suspect, that the initial check does not expand the search to branches. How could I enable this?

this works:

./bamboo.sh -s https://XXXXX.jira.com/bamboo -v -a getPlan --plan=BENTO-REL0

but the following produces an exception (interesting enough the command insists on --build, although in the doc --plan is specified):

./bamboo.sh -s https://XXXXX.jira.com/bamboo -v -a disablePlan --build=BENTO-REL0

Error is:

Response code: 200, message: OK, url: https://XXXXX.jira.com/builds/rest/api/latest/plan?os_authType=basic&max-results=1000
Looking for plan BENTO-REL0: BENTO-MASMER
Looking for plan BENTO-REL0: BENTO-REL

Remote error: BENTO-REL0 not found.
org.swift.common.cli.AbstractRemoteClient$RemoteRestException: BENTO-REL0 not found.
	at org.swift.bamboo.cli.BambooClient.verifyKeyExists(BambooClient.java:2138)
	at org.swift.bamboo.cli.BambooClient.enableBuild(BambooClient.java:1603)
	at org.swift.bamboo.cli.BambooClient.enablePlan(BambooClient.java:1591)
	at org.swift.bamboo.cli.BambooClient.enablePlan(BambooClient.java:1579)
	at org.swift.bamboo.cli.BambooClient.handleRequest(BambooClient.java:398)
	at org.swift.common.cli.AbstractRemoteClient.process(AbstractRemoteClient.java:122)
	at org.swift.common.cli.CliClient.doWork(CliClient.java:313)
	at org.swift.bamboo.cli.BambooClient.main(BambooClient.java:104)

Any help would be highly appreciated!

Thanks,
Dan

1 answer

1 accepted

Accepted Answer
0 votes
  1. Open an issue for the terminology problem. It should be plan but build will continue to work as there is ambiguity between terms plan and build.
  2. Child branch - needs an improvement request to support I suspect. Get it documented as there is a release coming soon and it can probably get in.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted yesterday in Featured Groups

Tuesday tips & tricks: What is the Atlassian Community?

It's officially Tuesday, which means it's officially time for another tip to help you better navigate this space we call the Atlassian Community. 😄 I got a great question from community member, Sa...

42 views 2 4
View post

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