Skip to content

Conversation

@jrluis
Copy link
Collaborator

@jrluis jrluis commented May 15, 2017

No description provided.

ndeloof and others added 30 commits July 8, 2015 11:23
GCloud SDK auto-installer
Workflow plugin compatibility
new version of google-oauth-plugin and fix gcloud path
Allows for using in declarative pipeline "tools" block.
getSDK() was previously changed to scan all installations to find the one
that matches the selected installation. But when "(Default)" is selected,
`installation` is an empty string, and none of the installed installations
will match that.

So when (Default) was selected, just look for the first available installation.
The default credential selection ("-none-") implies that there should be no
authentication performed. Normally this would be unusual because most gcloud
commands will require auth (but not all!).

Since there is also the option to execute a gcloud command with auth, that
also gives another chance to select a different service account. And if the
gcloud command does require auth, it will fail with:

    ERROR: (gcloud.the.command.that.ran)
    You do not currently have an active account selected.

which should be sufficient to indicate that they need to select credentials.
As of v0.8, the key is no longer exposed as a JSON file, but instead it only
exposes the accountId and privateKey. In order to use the key with the gcloud
SDK, we need to be able to pass the path to a JSON file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants