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

Can we trigger .exe file from Bamboo?

Sopan Sagorkar August 24, 2015
 

1 answer

1 accepted

1 vote
Answer accepted
Steffen Opel _Utoolity_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 25, 2015

This is possible with the Bamboo Script task, which allows you to use Bash on Linux, and batch files on Windows - accordingly, you just need to call the .exe file from a batch file turn, or even simpler, just select the location of the script file as Inline and specify the .exe file right there:

  • File — enter the location of the file in the Script file field. This can be either relative to the repository root of the plan, or absolute. You can include variables (see Bamboo variables).
  • Inline — enter the script in the Script body field.


Instead of using an old fashioned Windows batch file, you can meanwhile also run this as a Windows PowerShell script btw.:

(Optional, Windows only) Check the 'Run as Powershell script' checkbox to run the script with Powershell instead of cmd.exe which interprets .bat files. The inline editor supports Powershell syntax.

  • While the built-in Bamboo PowerShell support usually works just fine for simpler scripts (and certainly for the use case at hand), Stellarity also offers a more advanced PowerShell task in the Marketplace, which provides syntax highlighting for example.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events