jenkinsci / jenkinsci/workflow-basic-steps-plugin

[JENKINS-58597] Additional Step error with message

オープン
#492 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る
component:workflow-basic-steps-plugin imported-jira-issue priority:minor resolution:unresolved
主要言語
Java
スター
73
フォーク
129
PR マージ指標
30日以内にマージされた PR はありません

説明

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?

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず、既存の error() ステップのエントリーポイントと、そのメッセージが Jenkins および Blue Ocean のログにどのように表示されるかを調べます。提案するステップの動作を明確にします。これには、メッセージを出力しながら build を失敗させる方法も含まれます。その後、両方の結果を検証するテストを定義します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
java
領域
ci-cd
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。