2

複数の構成、つまりリリースとデバッグ用にプロジェクトをビルドするマトリックス ジョブを設定しました。これらのサブジョブのいずれかが失敗した場合、「拡張電子メール通知」プラグインは次のメール (${BUILD_LOG_REGEX}) を送信します。

Build log lines matching "error," "failed," etc:
[...truncated 5 lines...]
Release completed with result FAILURE
[...truncated 1 lines...]
Debug completed with result FAILURE
Email was triggered for: Failure
Sending email for trigger: Failure

サブジョブから電子メールに実際のエラー メッセージを取得するにはどうすればよいですか?

4

1 に答える 1

4

To get a portion of the log in the mail, if not all, set the 'Extended E-mail Notification' to send a separate email for each job that failed, and use the $BUILD_LOG in the body of the message:

  1. In the Multi-Configuration Job, the last parameter of the 'Editable Email Notification' is 'Trigger for matrix projects' - set it to 'Trigger for each configuration'.
  2. In the body of the message (below the '$DEFAULT_CONTENT' ) add the parameter $BUILD_LOG to display the end of the build log
  3. Assuming the log is in plain-text, change 'Content Type' to Plain Text

For the list of built-in Jenkins parameters, go to this page:

http://[your-jenkins-server]/env-vars.html

Cheers

于 2012-07-14T00:25:24.217 に答える