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

Error when using firebase-deploy


I have a pipeline using the firebase-deploy pipe (atlassian/firebase-deploy:0.3.0). It seems to do the deploy but results in an error. This fails the step even though the deployment was successful.

The pipe set up is:

- pipe: atlassian/firebase-deploy:0.3.0 variables:
  EXTRA_ARGS: "--only hosting:$FIREBASE_TARGET"

And the error is:

Error: An unexpected error has occurred.Traceback (most recent call last): File "/usr/bin/", line 62, in <module> run_pipe() File "/usr/bin/", line 55, in run_pipe fail(message=result.stderr.strip())AttributeError: 'NoneType' object has no attribute 'strip'

This appears before the error message:

i deploying hosting
Deploy complete!

1 answer

1 accepted

0 votes
Answer accepted

I figured it out. Because I am using targets, I hadn't setup my firebase.json correctly. The 'hosting' needs to be an array, not an object.

There could, however, be a change needed when reading the stderr to propagate the actually error - in this case firebase-tools was throwing.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket Pipelines

What We Learned When We Researched Open Source Vulnerabilities in 7 Popular Coding Languages

...hey are a part of us, shaping how we interact with the world around us. The same holds true for programming languages when we think about how different kinds of vulnerabilities raise their heads in t...

1,027 views 0 3
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