jenkinsci / jenkinsci/openstack-cloud-plugin

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

Open
#386 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
49
Forks
97
Avg merge
13h 23m
Merged PRs (30d)
6

Description

### 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_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.