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

Use different GitLabConnection for each API token #1260

Merged
merged 1 commit into from
Mar 11, 2022
Merged

Use different GitLabConnection for each API token #1260

merged 1 commit into from
Mar 11, 2022

Conversation

dbradley771
Copy link
Contributor

Before this change, getClient would cache whichever client is created first. Subsequent calls to the method would always return the cached client, even if the jobCredentialId parameter changes. This change makes the getClient method return a different client for each API token passed in.

Fixes #1216

Before this change, `getClient` would cache whichever client is created
first. Subsequent calls to the method would always return the cached
client, even if the `jobCredentialId` parameter changes. This change
makes the `getClient` method return a different client for each API
token passed in.

Fixes #1216
@dbradley771 dbradley771 requested a review from a team as a code owner March 11, 2022 04:21
Copy link
Member

@basil basil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR!

@basil basil added the bug For changelog: Minor bug. Will be listed after features label Mar 11, 2022
@basil basil merged commit fd40c2b into jenkinsci:master Mar 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug For changelog: Minor bug. Will be listed after features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Alternative credentials are not used due to client caching
2 participants