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

Allow user to specify maximum job return code

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • zos-connector-plugin
    • None
    • z/OS 1.11

      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.

          [JENKINS-29214] Allow user to specify maximum job return code

          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.

          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 .

          Added MaxCC in 1.1.0.

          Alexander Shcherbakov added a comment - Added MaxCC in 1.1.0.

          mesa added a comment -

          Confirmed it works here!

          mesa added a comment - Confirmed it works here!

            candiduslynx Alexander Shcherbakov
            mesa mesa
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: