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

[JENKINS-73677] Reapply: Decorate GitClient after adding credentials #1687

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Dohbedoh
Copy link
Contributor

@Dohbedoh Dohbedoh commented Nov 4, 2024

(second attempt of #1649)

JENKINS-73677: Credentials are added to GitClient after the client is decorated by extensions.. A plugin cannot for example override the credentials passed in via a GitSCMExtension (Noticed as part of jenkinsci/bitbucket-branch-source-plugin#867)

Testing done

Tested simple scenario: configured Pipeline from SCM with GitSCM with provided Credentials.
Tested other scenario: configured Multibranch SCM with Bitbucket Branch Source.
Tested other scenario: configured Multibranch SCM with Bitbucket Branch Source with SSH Credentials trait.

Submitter checklist

  • Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or Jira
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Ensure you have provided tests - that demonstrates feature works or fixes the issue

@Dohbedoh Dohbedoh requested a review from a team as a code owner November 4, 2024 03:19
@Dohbedoh Dohbedoh marked this pull request as draft November 4, 2024 03:19
@github-actions github-actions bot added the tests Automated test addition or improvement label Nov 4, 2024
@nfalco79
Copy link
Member

nfalco79 commented Nov 6, 2024

bitbucket-branch-source-plugin has been released with workaround that make SSH works with this patch

@Dohbedoh
Copy link
Contributor Author

@MarkEWaite Any chance to get this merged ? Bitbucket Branch Source should be ready now. cc @nfalco79

@nfalco79
Copy link
Member

Yes please. Merging this fix, enable us to fix the authentication issues in Bitbucket plugin

@MarkEWaite
Copy link
Contributor

@MarkEWaite Any chance to get this merged ? Bitbucket Branch Source should be ready now. cc @nfalco79

I'm leaving town until next Monday 2 Dec 2024. I'll plan to test it and release it the week of 2 Dec 2024.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests Automated test addition or improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants