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

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

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 Apr 03, 2019 in Marketplace Apps

How to estimate projects more accurately?

Gaining insight into your team’s effectiveness and choosing the right estimation technique.   Estimating projects is hard. It is because people have the tendency to underestimate the time thin...

278 views 2 8
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