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

Bug report for google-cloud-storage-deploy pipe

Andrey Bronin February 8, 2019

I'm using google-cloud-storage-deploy pipe v. 0.3.1

pipe: atlassian/google-cloud-storage-deploy:0.3.1

Steps to reproduce is very simple. I'm using it exactly like this documentation sample

script:
  - pipe: atlassian/google-cloud-storage-deploy:0.3.1
    variables:
      KEY_FILE: $KEY_FILE
      PROJECT: "my-project"
      BUCKET: "my-bucket"
      SOURCE: "."

 $KEY_FILE is a string with double quotes and everything else you got from Google Cloud. Like this:   {"a":"b", "c":d"}.

This key (actually even exactly this pipeline variable $KEY_FILE) used in other scripts to log into the Google Cloud Container Registry (you need the key with full read-write permissions to Google Cloud Storage to push containers there, then key is 100% good and working good).

Then i immediately go this error

ERROR: (gcloud.auth.activate-service-account) Could not read json file /tmp/key-file.json: No JSON object could be decoded

 

2 answers

1 accepted

1 vote
Answer accepted
davina
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 10, 2019

Hi @Andrey_Bronin

You need to base64 encode the contents of KEY_FILE and save it as a pipelines variable.

Let me know if this helps,

Davina

Andrey Bronin February 11, 2019

This helps. Thank you.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events