azuredevopslabs icon indicating copy to clipboard operation
azuredevopslabs copied to clipboard

getting error in to authenticate firebase project.

Open champ96k opened this issue 2 years ago • 2 comments

I am trying to setup a pipeline that adds the apk to the app distribution in firebase. I have the following yml:

Getting error in Authenticate Firebase CLI using service account key.

YML file

# Step 19: Authenticate Firebase CLI with service account key.
      - script: |
          echo "$FIREBASE_SA_KEY" > serviceAccountKey.json
          export GOOGLE_APPLICATION_CREDENTIALS=$(Agent.TempDirectory)/serviceAccountKey.json
          firebase login --non interactive
        displayName: 'Authenticate Firebase CLI'
        env:
          FIREBASE_SA_KEY: $(FIREBASE_SA_KEY)

      # Step 20: Distribute APKs to Firebase App Distribution.
      - script: |
          firebase appdistribution:distribute $(System.DefaultWorkingDirectory)/build/app/outputs/flutter-apk/*uat-release.apk \
            --app "app_id" \
            --groups "Developers" \
            --release-notes "$(Pipeline.Workspace)/ReleaseNotes/combined_release_notes.txt" \
            --project "project_id"
        displayName: 'Build and Deploy to Firebase'
        env:
          FIREBASE_SA_KEY: $(FIREBASE_SA_KEY)

As i also created issue on stack overflow for better understanding link

### Tasks

champ96k avatar Aug 18 '23 06:08 champ96k

@shad-1 @kant @kant @kant @jakobehn @cmaneu @sneakernuts Do you have any idea ?

champ96k avatar Aug 18 '23 09:08 champ96k

Hi @champ96k , this forum is available to discuss the concerns regarding labs that you find in Azuredevopslabs site. Seems like your concern is not related to any of the labs. Please try finding the solution in the relevant forum.

surajshenoy avatar Oct 30 '23 13:10 surajshenoy