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

Unable to update submodules on zos

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Blocker
    • Resolution: Not A Defect
    • Labels:
    • Environment:
      Jenkins ver. 2.60.3
      git client plugin 2.7.2
      git plugin 3.9.1
    • Similar Issues:

      Description

      The git client plugin is getting an error when attempting to perform an advanced submodule checkout using a Jenkins agent on z/OS.   The checkout works fine on a Linux agent. 

       

      The submodule is named test1.  see below:

       

       > /sf/dbbz/bin/git-jenkins.sh rev-list --no-walk 7f9581e0c3112019b53df90b30cc523b5448fd9e # timeout=10

       > /sf/dbbz/bin/git-jenkins.sh remote # timeout=10

       > /sf/dbbz/bin/git-jenkins.sh submodule init # timeout=10

       > /sf/dbbz/bin/git-jenkins.sh submodule sync # timeout=10

       > /sf/dbbz/bin/git-jenkins.sh config --get remote.origin.url # timeout=10

       > /sf/dbbz/bin/git-jenkins.sh submodule init # timeout=10

       > /sf/dbbz/bin/git-jenkins.sh config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10

       > /sf/dbbz/bin/git-jenkins.sh config --get submodule.mainframecd.url # timeout=10

      ERROR: Invalid repository for test1

      at hudson.plugins.git.extensions.impl.SubmoduleOption.onCheckoutCompleted(SubmoduleOption.java:108)

      Caused: java.io.IOException: Could not perform submodule update

        Attachments

          Activity

          Hide
          markewaite Mark Waite added a comment -

          Several questions that may help you find an alternative solution:

          • The name /sf/dbbz/bin/git-jenkins.sh looks like it might be a shell script rather than command line git. Have you tried that same shell script on Linux? Does that shell script correctly handle arguments (especially arguments containing special characters)?
          • What is the git version on zOS?
          • Have you tried the same operations with a command line git on zOS which is not wrapped by that shell script?
          • Have you tried the same operations with JGit as the implementation rather than command line git?
          Show
          markewaite Mark Waite added a comment - Several questions that may help you find an alternative solution: The name /sf/dbbz/bin/git-jenkins.sh looks like it might be a shell script rather than command line git. Have you tried that same shell script on Linux? Does that shell script correctly handle arguments (especially arguments containing special characters)? What is the git version on zOS? Have you tried the same operations with a command line git on zOS which is not wrapped by that shell script? Have you tried the same operations with JGit as the implementation rather than command line git?
          Hide
          enjoliver Eric Oliver added a comment -

          I've discovered the issue causing the problems with git submodule checkouts.  It was related to not having the LIBPATH set correctly for the Jenkins zos node.  Here is the setting: LIBPATH=$ZOS_GIT_DIR/lib/perl5/5.24.0/os390/CORE

          Show
          enjoliver Eric Oliver added a comment - I've discovered the issue causing the problems with git submodule checkouts.  It was related to not having the LIBPATH set correctly for the Jenkins zos node.  Here is the setting: LIBPATH=$ZOS_GIT_DIR/lib/perl5/5.24.0/os390/CORE

            People

            • Assignee:
              Unassigned
              Reporter:
              enjoliver Eric Oliver
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: