Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

bamboo client command, cannot use disablePlan on a plan branch

Tanju Erinmez January 20, 2013

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

0 votes
Answer accepted
Bob Swift OSS (Bob Swift Atlassian Apps)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 21, 2013
  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
TAGS
AUG Leaders

Atlassian Community Events