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

Next challenges

Recent achievements

Recognition

  • Give kudos
  • My kudos

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

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)

Thanks,

Robhit

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. 

Thanks

Loveleen

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. 

 

Thanks

Loveleen

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. 

Thanks,

Loveleen

 

ScriptTask.png

Suggest an answer

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

Bamboo 7.1 is here and is packed with value!

I'm happy to announce that Bamboo 7.1 has been released and it’s overflowing with awesome new features. Top-voted issues First and foremost, a bunch of JAC top voted issues has been delivered - y...

675 views 1 6
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