jenkinsci / jenkinsci/docker-plugin

[JENKINS-73553] New permanent agent using incorrect Docker launch details fails with NoStaplerConstructorException

Open
#1,350 3 comments 0 reactions 0 assignees View on GitHub
component:docker-plugin imported-jira-issue priority:minor resolution:unresolved
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


  • status: Open
  • priority: Minor
  • component(s): docker-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 2
  • imported: 20260709-204134

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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.