configuration-as-code-plugin
configuration-as-code-plugin copied to clipboard
Document SSH connector usage for docker-plugin in JCasC (fixes #2739)
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.
@timja Thanks the feedback; will try to it