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

Jenkins job doesn't detect completion of mainframe job

    XMLWordPrintable

    Details

    • Similar Issues:
    • Released As:
      zos-connector-2.3.1

      Description

      After upgrading to version 2.3.0, our existing Jenkins freestyle jobs are failing when submitting a job to the mainframe.

      Rolling back to 2.2.0 and resubmitting results in a working environment again.

      Failure logs look like:

      07:38:22 FTP: connected to 172.29.122.117:21
      07:38:23 Submitted job [JOB01556]
      07:38:33 ERROR: Job [JOB01556] cannot be found in JES
      07:38:44 ERROR: Job [JOB01556] cannot be found in JES
      ...
      10:04:07 ERROR: Job [JOB01556] cannot be found in JES
      10:04:15 ERROR: Interrupted.
      10:04:15 Job [JOB01556] processing failed. Reason: [WAIT_INTERRUPTED]
      10:04:18 ERROR: z/OS job failed with CC WAIT_INTERRUPTED

      Which is the point the jenkins job was killed.

      Prior version looks like:

      10:09:19 FTP: connected to 172.29.122.117:21
      10:09:20 Submitted job [JOB01575]
      10:09:30 FTP: connected to 172.29.122.117:21
      10:09:30 FTP: connected to 172.29.122.117:21
      10:09:32 FTP: connected to 172.29.122.117:21
      10:09:41 ERROR: Failed to log out from FTP server
      10:09:41 FTP: connected to 172.29.122.117:21
      10:09:42 Job [JOB01575] processing finished. Captured RC = [0000]

      The job identified in 2.3.0 did get submitted, did run and did end with RC=0.

      16.44.49 JOB01556 ---- SUNDAY, 19 MAY 2019 ---- 
      16.44.49 JOB01556 IRR010I USERID JENKINS IS ASSIGNED TO THIS JOB. 
      16.44.49 JOB01556 ICH70001I JENKINS LAST ACCESS AT 16:44:48 ON SUNDAY, MAY 19, 2019
      16.44.49 JOB01556 $HASP373 GEN65CAS STARTED - INIT 1 - CLASS A - SYS S0W1
      ...
      16.44.50 JOB01556 - -----TIMINGS (MINS.)------ -----PAGING COUNTS----
      16.44.50 JOB01556 -STEPNAME PROCSTEP RC EXCP CONN TCB SRB CLOCK SERV WORKLOAD PAGE SWAP VIO SWAPS
      16.44.50 JOB01556 -KEYS CAIRIM 00 302 113 .00 .00 .0 30 BATCH 0 0 0 0
      16.44.50 JOB01556 -GEN65CAS ENDED. NAME- TOTAL TCB CPU TIME= .00 TOTAL ELAPSED TIME= .0 
      16.44.50 JOB01556 $HASP395 GEN65CAS ENDED - RC=0000
      ------ JES2 JOB STATISTICS ------ 
       19 MAY 2019 JOB EXECUTION DATE 
       17 CARDS READ 
       208 SYSOUT PRINT RECORDS 
       0 SYSOUT PUNCH RECORDS 
       16 SYSOUT SPOOL KBYTES 
       0.00 MINUTES EXECUTION TIME
      

       

       

        Attachments

        1. debugLog.20190521.0946.txt
          11 kB
        2. debugLog.20190521.1551.txt
          7 kB
        3. debugLog.20190521.2012.txt
          2 kB
        4. debugLog.20190521.2047.txt
          2 kB
        5. debugLog.20190522.0921.txt
          4 kB
        6. debugLog.20190522.2041.txt
          4 kB
        7. debugLog.20190522.2212.txt
          4 kB
        8. debugLog.20190523.0736.txt
          4 kB
        9. debugLog.20190523.2055.txt
          4 kB
        10. debugLog.20190524.0815.txt
          4 kB
        11. debugLog.20190527.0800.txt
          10 kB
        12. debugLog.20190527.1456.txt
          2 kB
        13. ftpLog.20190521.0946.txt
          0.9 kB
        14. jobConfig.png
          jobConfig.png
          19 kB
        15. listing.nolimit.txt
          6 kB
        16. listing.txt
          6 kB
        17. zos-connector.hpi
          320 kB

          Activity

          Hide
          candiduslynx Alexander Shcherbakov added a comment -

          OK, I found the issue now. It seems that during restructuring changes for 2.3.0 I accidentally broke JESINTERFACELEVEL=2 check (it doesn't try to extract RC at all) by misplacing single '}'.

          I decided to leave logon as in 2.2.0 (more stable) + fixed the rc check. Kindly retest.

          Show
          candiduslynx Alexander Shcherbakov added a comment - OK, I found the issue now. It seems that during restructuring changes for 2.3.0 I accidentally broke JESINTERFACELEVEL=2 check (it doesn't try to extract RC at all) by misplacing single '}'. I decided to leave logon as in 2.2.0 (more stable) + fixed the rc check. Kindly retest.
          Hide
          strattondrs Daniel Stratton added a comment -

          I've run 3 successful jobs back to back with no obvious signs of problems, so it looks to be good from my side.

          Show
          strattondrs Daniel Stratton added a comment - I've run 3 successful jobs back to back with no obvious signs of problems, so it looks to be good from my side.
          Hide
          candiduslynx Alexander Shcherbakov added a comment -

          You can either wait for the plugin to be listed via Jenkins (or force yor server to list manually) or dl from here: https://repo.jenkins-ci.org/releases/org/jenkins-ci/plugins/zos-connector/2.3.1

          Kindly test and close the issue as appropriate.

          Show
          candiduslynx Alexander Shcherbakov added a comment - You can either wait for the plugin to be listed via Jenkins (or force yor server to list manually) or dl from here: https://repo.jenkins-ci.org/releases/org/jenkins-ci/plugins/zos-connector/2.3.1 Kindly test and close the issue as appropriate.
          Hide
          strattondrs Daniel Stratton added a comment -

          Refreshed the plugin list from Jenkins, grabbed the last and ran a couple of jobs happily.

          Thanks for getting this sorted.

          Show
          strattondrs Daniel Stratton added a comment - Refreshed the plugin list from Jenkins, grabbed the last and ran a couple of jobs happily. Thanks for getting this sorted.
          Hide
          strattondrs Daniel Stratton added a comment -

          Existing jobs are now working again quite happily.

          Show
          strattondrs Daniel Stratton added a comment - Existing jobs are now working again quite happily.

            People

            • Assignee:
              candiduslynx Alexander Shcherbakov
              Reporter:
              strattondrs Daniel Stratton
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: