The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Bug report for google-cloud-storage-deploy pipe

Andrey Bronin
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 11, 2019

This helps. Thank you.

TAGS
AUG Leaders

Atlassian Community Events