External Command is not understood

Hi I am new to Bamboo and trying to evaluate the tool for the company.

I have a batch file executing a powershell. Inside the powershell script, I am calling out an external command (CCM.exe) which is a command line executable for IBM Synergy.

Bamboo doesn't understand ccm.exe and errors out.

When I run the batch file by itself, it works fine and it seems to me Bamboo is trying to run external executables inside the bamboo home directory.

I tried to add the global variable for the path and also tried with adding executables but all failed.

Similar issue that I have to fully specify the folder path to the powershell.exe otherwise, bamboo doesn't understand powershell.exe within the batch file.

how can I make bambo to run external exe without an issue

1 answer

1 accepted

Hi Bambi,

1. What type of Bamboo tasks are you using? Is it a Script task? Whatever command you try to run from a Script task, Bamboo will try to execute them from the current working direcotry (BambooHome/xml-data/build-dir/PROJ1-PLAN1-JOB1) of that plan. If you have set the correct Path environment variable for the user that runs your Bamboo instance, Bamboo will try to use that Path to find the executable(s).

2. Are you running your Bamboo as a Windows service? If yes, make sure to start it as a local admin account.

3. Try to print the Path variable from a Bamboo Script task (echo ${system.Path}) and see what Bamboo uses. You can also navigate to the Administration -> System Information page to see the list of environment variables.

Please let me know if you have any further questions or concerns.

Cheers,
Armen

Thank you Armen,

I will try it out. My team moved on to Jenkins but the company is evaluating the suite of Atlansian tools as the company wide tools (Jira, Cruicible, Confluence, etc), and Bamboo is on evaluation again. :)

Suggest an answer

Log in or Join to answer
Community showcase
Renan Battaglin
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,096 views 0 5
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot