Hi,
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:
FIREBASE_TOKEN: "$FIREBASE_TOKEN"
EXTRA_ARGS: "--only hosting:$FIREBASE_TARGET"
And the error is:
Error: An unexpected error has occurred.
Traceback (most recent call last):
File "/usr/bin/main.py", line 62, in <module>
run_pipe()
File "/usr/bin/main.py", 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!
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.