configuration-as-code-plugin icon indicating copy to clipboard operation
configuration-as-code-plugin copied to clipboard

Document SSH connector usage for docker-plugin in JCasC (fixes #2739)

Open hyderraza18 opened this issue 1 month ago • 1 comments

This PR adds a new demo showing how to configure the docker-plugin with the SSH connector using Jenkins Configuration as Code (JCasC). The existing documentation does not include an SSH example for docker-based agents, and the structure of this connector is not obvious from plugin usage, so this demo is added to help users configure it correctly.

The new files include:

demos/docker-plugin/docker-plugin-ssh.yaml : a minimal working SSH connector example

demos/docker-plugin/README.md

This example uses the proper sshConnector field and a Jenkins credential ID for the SSH private key, which resolves the issue reported in #2739.

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

hyderraza18 avatar Nov 24 '25 13:11 hyderraza18

@timja Thanks the feedback; will try to it

hyderraza18 avatar Nov 25 '25 07:11 hyderraza18