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

Provide the binding class to make credentials be usable with withCredentials pipeline function #386

Open
c-akurilin-godaddy opened this issue Nov 6, 2024 · 0 comments

Comments

@c-akurilin-godaddy
Copy link

What feature do you want to see added?

I want to avoid credentials duplication and use the same item in job pipeline.
Unfortunately, "OpenstackCredentialv3" does not provide a binding class, so the only way to reuse credentials looks like:

def os_all_creds = com.cloudbees.plugins.credentials.CredentialsProvider.lookupCredentials(
    jenkins.plugins.openstack.compute.auth.OpenstackCredentialv3
)
def os_credential = os_all_creds.findResult { it.id == "my-openstack-credentials" ? it : null }

The minor part of the hack relates to the fact that the credentials are not excluded from job run output.

Upstream changes

No response

Are you interested in contributing this feature?

No response

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

No branches or pull requests

1 participant