jenkinsci / jenkinsci/docker-plugin
[JENKINS-73553] New permanent agent using incorrect Docker launch details fails with NoStaplerConstructorException
- Dominant language
- Java
- Stars
- 498
- Forks
- 324
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 2
Description
Reproduction steps:
// I ran it with mvn hpi:run with the newest version of the docker plugin
- from Jenkins dashboard, click 'Build Executor Status'
- click ‘New Node’ button
- name it anything, click ‘Permanent Agent’ option
- I put the remote root directory as /tmp and left everything else as is
- click ‘Save' and boom, angry Jenkins
Theory:
- it is due to the launch method ‘Docker variant of Launch agents via SSH awith SSH key injection’ - does not fail gracefully when given incorrect details
- I played with leaving the host empty and typing in something, and either way got the same stack trace
Stack trace is attached.
---
Originally reported by julieheard, imported from: New permanent agent using incorrect Docker launch details fails with NoStaplerConstructorException
Raw content of original issue
Reproduction steps:
// I ran it with mvn hpi:run with the newest version of the docker plugin
- from Jenkins dashboard, click 'Build Executor Status'
- click ‘New Node’ button
- name it anything, click ‘Permanent Agent’ option
- I put the remote root directory as /tmp and left everything else as is
- click ‘Save' and boom, angry Jenkins
Theory:
- it is due to the launch method ‘Docker variant of Launch agents via SSH awith SSH key injection’ - does not fail gracefully when given incorrect details
- I played with leaving the host empty and typing in something, and either way got the same stack trace
Stack trace is attached.
- environment:
Newest version of the plugin
1 attachment
- [stack-trace](https://raw.githubusercontent.com/jenkinsci/attachments-from-jira-issues-misc/refs/heads/main/attachments/63101/stack-trace)
Contributor guide
Assessment
This issue has not been assessed yet.