jenkinsci / jenkinsci/workflow-basic-steps-plugin

[JENKINS-58597] Additional Step error with message

Offen
#492 4 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
component:workflow-basic-steps-plugin imported-jira-issue priority:minor resolution:unresolved
Vorherrschende Sprache
Java
Sterne
73
Forks
129
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

As noted in other issues the error() step is not intended to print messages. But there are some use cases where this becomes very helpful. Eg. provides information directly in the blue ocean log; the error step does this sporadic only.

Does it make sense to add another step with fails the build but also prints to the log?

---
Originally reported by ethorsa, imported from: Additional Step error with message


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

Raw content of original issue

As noted in other issues the error() step is not intended to print messages. But there are some use cases where this becomes very helpful. Eg. provides information directly in the blue ocean log; the error step does this sporadic only.

Does it make sense to add another step with fails the build but also prints to the log?

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Start by examining the existing error() step entry point and how its messages appear in Jenkins and Blue Ocean logs. Clarify the proposed step’s behavior, including how it should fail the build while printing a message, then define tests that verify both outcomes.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
java
Bereich
ci-cd
Issue-Typ
Feature
Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
25/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.