Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add withCredentials support #182

Open
ViliusS opened this issue Jul 7, 2023 · 0 comments
Open

add withCredentials support #182

ViliusS opened this issue Jul 7, 2023 · 0 comments

Comments

@ViliusS
Copy link

ViliusS commented Jul 7, 2023

What feature do you want to see added?

It would be very useful if this plugin would implement standard Credential Binging support via withCredentials. For now, if anyone needs to have Service Account JSON private key passed to let's say environment variable, you have to duplicate private key by uploading it to "Secret file" type. Then do:

withCredentials([file(credentialsId: 'privatekey-file', variable: 'GOOGLE_APPLICATION_CREDENTIALS')]) {
    sh "kubectl get pods"
}

So for Google Cloud and other Jenkins plugins "GoogleRobotPrivateKey" object is used, but for other custom stuff it's just a "Secret file".

Upstream changes

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant