It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Issue with automating ANT build via bamboo cli

Sudeshna Das I'm New Here Jan 05, 2019

I am trying to automate the ant build procedure via bamboo cli but i am facing an issue.
I am firing the below command:

[ec2-user@ip-172-31-34-157 atlassian-cli-8.1.0]$ sudo ./ --action addTask --plan MCP-MPP --job "Ant Job" --description Ant-Build --taskKey ANT --field1 label --value1 ANT --field2 buildFile --value2 build.xml --field3 target --value3 "war" --field4 buildJdk --value4 "JDK 1.8.0_191"

JDK and ANT has already been included in the capability section along with the path.

Below is the error that i am getting:

URL requested: JOB
Request type: GET
Content type: application/json; charset=utf-8
Accept content type: application/json
Response code: 400, message: null, url: JOB
json: {}
json: {}
json: {}
Problem determination - response: 400: null
Problem determination - response url: JOB
Problem determination - request url: JOB

Remote error: Invalid request. Response code: 400. Use -v to see more details.
org.swift.common.cli.CliClient$RemoteInvalidRequestException: Invalid request. Response code: 400. Use -v to see more details.
at org.swift.common.cli.helpers.DefaultRequestHelper.handleBadResponseCode(
at org.swift.common.cli.helpers.DefaultRequestHelper.makeRequestWithUrlConnection(
at org.swift.common.cli.helpers.DefaultRequestHelper.makeUrlRequest(
at org.swift.common.cli.helpers.DefaultRequestHelper.makeRequest(
at org.swift.common.cli.helpers.DefaultRequestHelper.makeStandardRequest(
at org.swift.bamboo.cli.helpers.PlanHelper.verifyJob(
at org.swift.bamboo.cli.helpers.TaskHelper.addOrUpdateTask(
at org.swift.bamboo.cli.BambooClient.handleRequest(
at org.swift.common.cli.DefaultRemoteClient.process(
at org.swift.common.cli.CliClient.doWork(
at org.swift.common.cli.CliClient.doWork(
at org.swift.bamboo.cli.BambooClient.main(
This function requires a non-blank value for parameter server.

Please help me in resolving this issue.

1 answer

0 votes
Vijay Ramamurthy Jan 09, 2019 • edited

Hi @Sudeshna Das,


Can you please run the below command and check if you are able to get the server info using the CLI.


 --debug --action getServerInfo


We noticed that you are getting 404 error we would like to check if you are able to access the server first in order to perform some actions on it using CLI.

We have also raised a request SUPPORT-1826 on your behalf in our support portal. Please signup to our customer portal through this link so that we will be able to share the request with you.



Vijay Ramamurthy

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Marketplace Apps & Integrations

Webinar alert! An IT Admin's Guide to Securing Collaboration at Scale

Hello, Atlassian Community! My name is Dave Meyer and I'm a Principal Product Manager at Atlassian. I wanted to give this community a heads up about an upcoming Webinar that might be of interest...

171 views 2 7
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you