0

Duplicate Question: By Uber, previously asked for google-cloud-firestore

My question is Related to Deploy Firebase from Azure DevOps. I have a list of tasks in my CI Pipeline which are running fine but the one firebase publish job consistently getting failed.

Error:

enter image description here

Also, I have put my token inside variables

enter image description here

install firebase tools:

enter image description here

firebase publish:

enter image description here

How can this be solved? what I'm doing wrong here?

Ahmer Ali Ahsan
  • 5,636
  • 16
  • 44
  • 81

1 Answers1

1

I think the issue comes from the usage of your variables.

See all of the variables usage:

https://learn.microsoft.com/en-us/azure/devops/pipelines/process/variables?view=azure-devops&tabs=yaml%2Cbatch#runtime-expression-syntax

enter image description here

You can find that no usage like this:

$key

I think it should be:

$(key)

In your situation, the issue should comes from $FIREBASE_TOKEN itself was been recognized as string "$FIREBASE_TOKEN", the actual value was not pass in.

Bowman Zhu-MSFT
  • 4,776
  • 1
  • 9
  • 10