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

This widget could not be displayed.
  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
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 Teamwork

What teamwork quotes inspire you?

Hey everyone! My name is Natalie and I'm an editor of the Atlassian Blog and I've got a question for you: What's your favorite quote about teamwork?  We've compiled a list here, along with...

176 views 18 7
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