Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Bamboo: build task - Script Task to run Batch file to create war files for build giving error

getting the following error :

05-Feb-2018 12:46:47 releaseCompleteWar.bat: line 1: Rem: command not found

05-Feb-2018 12:46:47 releaseCompleteWar.bat: line 2: Rem: command not found
05-Feb-2018 12:46:47 releaseCompleteWar.bat: line 4: SETLOCAL: command not found
05-Feb-2018 12:46:47 releaseCompleteWar.bat: line 73: unexpected EOF while looking for matching `"'
05-Feb-2018 12:46:47 releaseCompleteWar.bat: line 82: syntax error: unexpected end of file

1 answer

0 votes
robhit Atlassian Team Feb 05, 2018

Hi Loveleen,

Thanks for your question!

It seems the interpreter is not set correctly in the script task. Also, check for the Agent used to run the build plan (confirm that the plan is executed on the Windows by the Agent as you commands are Windows Compatible)



Hi Robhit, 

thanks for getting back. I dont see the interpreter option, when I am trying to set up a script task. It gives me options - Task Description, Script location, script file, arguments,environment variables and working sub directory. no option to say that it is a batch file. 



Hi Robhit, 

Still trying to find solution. The script task has batch file mentioned. It is executing the batch file as per required but ant commands in it are failing. cant recognise ant. I added ant as a requirement. Installed ant on the windows bamboo agent but no use. 




robhit Atlassian Team Feb 06, 2018

Hi Loveleen,

How about sharing the screenshot? and the Bamboo Version you are using?

Also, share the commands that you are using.

My Screen Shot:

Screen Shot 0030-02-06 at 11.38.47 PM.png

Hi Robhit, 

this is the task page I see on bamboo. Solved this one by installing ant on the server which was actually missing. But I cant see any interpreter dropdown option on my task page. 





Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bamboo

Bamboo Data Center on Kubernetes

Hi, If you are running self-managed environments and looking to adopt modern infrastructure, Bamboo Data Center can now be deployed in a Kubernetes cluster. By leveraging Kubernetes, you can easily...

908 views 3 8
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