Details

    • Similar Issues:

      Description

      I would like to see more logging on the console. There are two major log lines I would like to see:

      Job submitted to z/OS, assigned job id JOB12345 (or whatever job id it has been assigned)

      and

      Job ended, RC=0004 (or whatever it ended with)

      Even better, two alternate messages when the job did not end ok:

      Job failed, RC=008 (when the return-code was higher than configured)
      Job abended, Code=S0C7 (when the job terminated for other reasons)

        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/zFTPConnector.java
          src/main/java/org/jenkinsci/plugins/IBM_zOS_Connector/zOSJobSubmitter.java
          http://jenkins-ci.org/commit/zos-connector-plugin/56de2626d212a157aa35181bd95b0466d2378acf
          Log:
          Add logging to build log JENKINS-31837.

          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/zFTPConnector.java src/main/java/org/jenkinsci/plugins/IBM_zOS_Connector/zOSJobSubmitter.java http://jenkins-ci.org/commit/zos-connector-plugin/56de2626d212a157aa35181bd95b0466d2378acf Log: Add logging to build log JENKINS-31837 .
          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/zFTPConnector.java
          src/main/java/org/jenkinsci/plugins/IBM_zOS_Connector/zOSJobSubmitter.java
          http://jenkins-ci.org/commit/zos-connector-plugin/2233e8f0f880f3a3ac62c6ee99c22830b802aee0
          Log:
          Merge pull request #1 from jenkinsci/develop

          Add logging to build log JENKINS-31837.

          Compare: https://github.com/jenkinsci/zos-connector-plugin/compare/578b07869c21...2233e8f0f880

          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/zFTPConnector.java src/main/java/org/jenkinsci/plugins/IBM_zOS_Connector/zOSJobSubmitter.java http://jenkins-ci.org/commit/zos-connector-plugin/2233e8f0f880f3a3ac62c6ee99c22830b802aee0 Log: Merge pull request #1 from jenkinsci/develop Add logging to build log JENKINS-31837 . Compare: https://github.com/jenkinsci/zos-connector-plugin/compare/578b07869c21...2233e8f0f880
          Hide
          candiduslynx Alexander Shcherbakov added a comment -

          Dev version containing more logging atttached to the issue.

          Show
          candiduslynx Alexander Shcherbakov added a comment - Dev version containing more logging atttached to the issue.
          Hide
          mesa Metin Savignano added a comment -

          Aplogies for the delay. I have now downloaded and tested the attached version.

          • Displaying the job id of the submitted job works fine
          • Displaying the result when the job was successful works fine
          • Display of the result when the job failed due to a system exception could be better

          In order to provocate a system exception, I ran the jenkins job, and when the job was submitted and running, I canceled ,so it failed with a S222 abend:

          IEF450I TESTJOB COBOL TESTPGM - ABEND=S222 U0000 REASON=00000000

          However, the output of the plugin was:

          Job [JOB06579] processing finished. Captured RC = [UNKNOWN]

          This works in the sense that the build step will be marked as failed, but a message saying the job abended, and displaying the abend code S222, would be even better.

          Show
          mesa Metin Savignano added a comment - Aplogies for the delay. I have now downloaded and tested the attached version. Displaying the job id of the submitted job works fine Displaying the result when the job was successful works fine Display of the result when the job failed due to a system exception could be better In order to provocate a system exception, I ran the jenkins job, and when the job was submitted and running, I canceled ,so it failed with a S222 abend: IEF450I TESTJOB COBOL TESTPGM - ABEND=S222 U0000 REASON=00000000 However, the output of the plugin was: Job [JOB06579] processing finished. Captured RC = [UNKNOWN] This works in the sense that the build step will be marked as failed, but a message saying the job abended, and displaying the abend code S222, would be even better.
          Hide
          candiduslynx Alexander Shcherbakov added a comment -

          Just added new build for the fix.

          Show
          candiduslynx Alexander Shcherbakov added a comment - Just added new build for the fix.
          Hide
          mesa Metin Savignano added a comment -

          Looks good!

          Show
          mesa Metin Savignano added a comment - Looks good!
          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
          http://jenkins-ci.org/commit/zos-connector-plugin/c819c806d59a97e89dfed4230947327b409a7b17
          Log:
          Alter output based on the job CC (abend, error, ok) JENKINS-31837.

          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 http://jenkins-ci.org/commit/zos-connector-plugin/c819c806d59a97e89dfed4230947327b409a7b17 Log: Alter output based on the job CC (abend, error, ok) JENKINS-31837 .
          Hide
          candiduslynx Alexander Shcherbakov added a comment -

          Version 1.2.4 contains the fix for this issue.
          Kindly install and review the fix.

          Please, backup your jobs (JCL text) before update, as the new version is incompatible in this sense with older versions.

          Show
          candiduslynx Alexander Shcherbakov added a comment - Version 1.2.4 contains the fix for this issue. Kindly install and review the fix. Please, backup your jobs (JCL text) before update, as the new version is incompatible in this sense with older versions.
          Hide
          candiduslynx Alexander Shcherbakov added a comment -

          Version 1.2.4.1 is going to contain the notice of incompatibitity (that'll ber the only change there).

          Show
          candiduslynx Alexander Shcherbakov added a comment - Version 1.2.4.1 is going to contain the notice of incompatibitity (that'll ber the only change there).

            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: