Class ContainerStartupDiagnostics
java.lang.Object
io.jenkins.plugins.swarmcloud.diagnostics.ContainerStartupDiagnostics
Pattern-based diagnostics for Docker / OCI runtime errors observed when a Swarm task
fails to start the agent container. The goal is to convert the cryptic
"exec: \"...\": no such file or directory" message into a one-line actionable
hint that points the user at the right knob (disableContainerArgs,
entrypoint:, or switching to jenkins/inbound-agent).
Used by SwarmComputerLauncher when polling the failing Swarm task's
Status.Err field.
-
Method Summary
-
Method Details
-
hintFor
Returns a human-readable hint for a Swarm task error string, ornullif no known pattern matches.Recognised patterns:
- Args used as command (no ENTRYPOINT in image). The would-be executable is
an
http(s)://URL — that is the Jenkins URL the plugin passes as the first positional arg. RecommenddisableContainerArgs: true, settingentrypoint:on the template, or switching tojenkins/inbound-agent. - Custom entrypoint binary missing. The would-be executable is a path
(
/usr/...orbin/...) that does not exist in the image. Hint the user to check theentrypoint:value or the image's installed binaries.
- Parameters:
taskError- theTask.Status.Errstring reported by Docker Swarm; may benull- Returns:
- a single-line hint suitable for the build log, or
nullwhen nothing matches
- Args used as command (no ENTRYPOINT in image). The would-be executable is
an
-