Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-29214

Allow user to specify maximum job return code

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Currently, the plugin submits a job to JES and checks for the job return code (max rc). If the return code is not zero, the plugin considers the job to have failed.

      In real-life, non-zero return-codes do no necessarily mean that the jobs has failed. RC=4 (WARN) is usually considered fine, too. Under certain circumstances, even RC=8 may be considered fine (e.g. in delete steps when the dataset to be deleted does not exist).

      To cope with these custom situations, the Submit JCL step should provide a way to specify the maximum return code which should be considered successful. Example: A max RC of 4 would mean that any job return code lower than or equal to 4 should be considered success.

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: candiduslynx
          Path:
          src/main/java/org/jenkinsci/plugins/IBM_zOS_Connector/zOSJobSubmitter.java
          src/main/resources/org/jenkinsci/plugins/IBM_zOS_Connector/zOSJobSubmitter/config.jelly
          http://jenkins-ci.org/commit/zos-connector-plugin/712a2ecce524ae7339dd613b9889fa0f2fa230ff
          Log:
          Add MaxCC parameter JENKINS-29214.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: candiduslynx Path: src/main/java/org/jenkinsci/plugins/IBM_zOS_Connector/zOSJobSubmitter.java src/main/resources/org/jenkinsci/plugins/IBM_zOS_Connector/zOSJobSubmitter/config.jelly http://jenkins-ci.org/commit/zos-connector-plugin/712a2ecce524ae7339dd613b9889fa0f2fa230ff Log: Add MaxCC parameter JENKINS-29214 .
          Hide
          candiduslynx Alexander Shcherbakov added a comment -

          Added MaxCC in 1.1.0.

          Show
          candiduslynx Alexander Shcherbakov added a comment - Added MaxCC in 1.1.0.
          Hide
          mesa Metin Savignano added a comment -

          Confirmed it works here!

          Show
          mesa Metin Savignano added a comment - Confirmed it works here!

            People

            • Assignee:
              candiduslynx Alexander Shcherbakov
              Reporter:
              mesa Metin Savignano
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: