jenkinsci / jenkinsci/workflow-basic-steps-plugin

[JENKINS-52768] echo step should use toString

Open
#465 0 comments 0 reactions 0 assignees View on GitHub
component:workflow-basic-steps-plugin imported-jira-issue priority:minor resolution:unresolved
Dominant language
Java
Stars
73
Forks
129
PR merge metrics
No merged PRs in 30d

Description

The echo command requires a String or GString to be passed to it (perhaps CharSequence?), and it fails with an obscure error about not having an @​DataBoundConstructor otherwise.

Instead, the usual API for some sort of print(Object) is to use toString(), and the echo command should invoke Object#toString() if it gets an argument that it doesn't recognize.

---
Originally reported by chrylis, imported from: echo step should use toString


  • status: Open
  • priority: Minor
  • component(s): workflow-basic-steps-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 1
  • imported: 20251215-220547

Raw content of original issue

The echo command requires a String or GString to be passed to it (perhaps CharSequence?), and it fails with an obscure error about not having an @DataBoundConstructor otherwise.

Instead, the usual API for some sort of print(Object) is to use toString(), and the echo command should invoke Object#toString() if it gets an argument that it doesn't recognize.

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.