Skip to content

Clarify use of readFile for SSH private key credentials#2863

Merged
timja merged 1 commit into
jenkinsci:masterfrom
somiljain2006:SSH-key-issue
Jul 6, 2026
Merged

Clarify use of readFile for SSH private key credentials#2863
timja merged 1 commit into
jenkinsci:masterfrom
somiljain2006:SSH-key-issue

Conversation

@somiljain2006

@somiljain2006 somiljain2006 commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Fixes #2424

Document correct use of readFile for SSH private key credentials. Clarify that basicSSHUserPrivateKey.privateKey expects the raw PEM contents and should be populated using readFile rather than readFileBase64.

Your checklist for this pull request

🚨 Please review the guidelines for contributing to this repository.

  • Make sure you are requesting to pull a topic/feature/bugfix branch (right side) and not your master branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or in Jenkins JIRA
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Did you provide a test-case? That demonstrates the feature works or fixes the issue.

@somiljain2006
somiljain2006 requested a review from a team as a code owner July 6, 2026 07:33
@timja timja added the documentation A PR that adds to documentation - used by Release Drafter label Jul 6, 2026
@timja
timja merged commit d627440 into jenkinsci:master Jul 6, 2026
17 checks passed
@somiljain2006
somiljain2006 deleted the SSH-key-issue branch July 6, 2026 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation A PR that adds to documentation - used by Release Drafter

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SSH private key credential is corrupted by export + import

2 participants