Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

Introduction

Job errors and warnings are detected by JS7 from a job's return code:

  • For Shell Jobs the return code corresponds to the job's exit code.
  • For JVM Jobs the return code is available from the order outcome with the returnCode return variable.

In addition, for Shell Jobs output that is possibly available from the stderr channel can be used to decide about errors and warnings.

Detect Job Errors

Detect Errors from Job Return Codes


Detect Errors from Output to the stderr Channel

Download workflow example (upload .json): pdwStdError.workflow.json

Assume a workflow configuration with a job script that creates output to the stderr channel like this:

Image Added


The "Job Options" tab offers to select the Fail on output to stderr checkbox like this:

Image Added



Detect Job Warnings



Feature Status:

Display feature availability
StartingFromRelease2.4.1

Jira
serverSOS JIRA
columnIdsissuekey,summary,issuetype,created,updated,duedate,assignee,reporter,priority,status,resolution
columnskey,summary,type,created,updated,due,assignee,reporter,priority,status,resolution
serverId6dc67751-9d67-34cd-985b-194a8cdc9602
keyJOC-1350

Jira
serverSOS JIRA
columnIdsissuekey,summary,issuetype,created,updated,duedate,assignee,reporter,priority,status,resolution
columnskey,summary,type,created,updated,due,assignee,reporter,priority,status,resolution
serverId6dc67751-9d67-34cd-985b-194a8cdc9602
keyJOC-1363