Open johnsca opened 7 years ago
I ran into this problem with my google credentials as they are stored in a json file. I was not able to add them in the oauth2 format successfully. It only works if I create a json file and make credentials.yaml look like:
credentials:
google:
work_bechmarking_gce:
auth-type: jsonfile
file: /var/lib/jenkins/.local/share/juju/foo.json
The GCE provider can use a soft-reference to a JSON file containing the actual creds in
credentials.yaml
:Thus, sending that YAML won't get the proper credential. We need to support sending the JSON file itself and loading that in properly.