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

Next challenges

Recent achievements


  • Give kudos
  • My kudos


  • 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

Shell commands show as error status in the build log Edited

Hi, bit of an odd one.

Running a plan with a task of type Interpreter as Shell. Our script body for a simple test is;

#!/usr/bin/env bash
set -euxo pipefail

echo $?

which bash
echo $?


The log for for the above commands shows as error and for the life of us we cant work out why? We run bash in strict mode, but we've altered the set statement too, but no avail.

The above throws;


error 01-Nov-2019 10:56:07 + export
build 01-Nov-2019 10:56:07 declare -x IMAGE_ID="xxxxxxxxxxxxxx/something/someimage:sometag"
error 01-Nov-2019 10:56:07 + echo 0
build 01-Nov-2019 10:56:07 declare -x JAVA_HOME="/usr/lib/jvm/java-8-oracle"
error 01-Nov-2019 10:56:07 + which bash
build 01-Nov-2019 10:56:07 0
01-Nov-2019 10:56:07 /bin/bash
build 01-Nov-2019 10:56:07 0


Any ideas why it's a status of error, even through exit codes are of value 0 and the export command and which bash command return valid values?


0 answers

Suggest an answer

Log in or Sign up to answer
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...

695 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