In Bamboo , How to run script task in x86 or x64 bit mode?

Script task is running cmd or powershell. But i want to run x86 powershell instead of x64 bit. Is there a provision there to run script in desired bit?

As a workaround , If i run command task with providing powershell 32 bit path the script is being executed but the problem is even if build fails it says succeeded.

As per command task the script is invoked and it consider it as success.

2 answers

0 vote
Bill Carreon Atlassian Team Apr 09, 2018

Howdy,

 

Thanks for reaching out to the Atlassian Community.

You are correct that running the script task in x86 mode will require using the direct path to the x86 version in an x64 environment.

Regarding the build being marked as a success; Bamboo will only consider non-zero exit code successful. To have a build considered a failure, simply have the script exist with a non-zero value.

 

Regards,

Bill Carreon

DevTools Support Engineer

And once you get past the basics, you may run into a variety of other complications - for example, Windows programs that send error output to stdout by default instead of stderr (we've run into this with sqlcmd and msbuild).  See this thread for some related comments.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
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,815 views 0 6
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