Skip to main content
Jul 25, 2017 8:54 AM UTC

Errors when Jenkins slave issues Git commands on USS

We are currently experimenting with using Jenkins remote slave on USS to issue Git commands to Git installation. We have two test systems. On one of the test systems everything works as expected. On the second test system the Jenkins build fails during the Git fetch because it cannot find any remote branches. Both test systems are being invoked by the same Jenkins server and are connecting to the same remove Git server. We have not been able to identify what if any differences between the systems may be causing the inconsistent behavior.

We are using a standard Jenkins Git Client plugin to access the remote repository. It issues four commands at the beginning of each build. Jenkins Build Log from the failing test system:

Building remotely on tvt6031Dan in workspace /u/dbruce/test/jenkins/workspace/DansGitPull
 > /u/dbruce/test/dbb/sample/git-jenkins.sh rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > /u/dbruce/test/dbb/sample/git-jenkins.sh config remote.origin.url ssh://drbruce@abc.com/git/mortgage-repo.git # timeout=10
Fetching upstream changes from ssh://drbruce@abc.com/git/mortgage-repo.git
 > /u/dbruce/test/dbb/sample/git-jenkins.sh --version # timeout=10
using GIT_SSH to set credentials Dans ee-jenkins git credentials
 > /u/dbruce/test/dbb/sample/git-jenkins.sh fetch --tags ssh://drbruce@abc.com/git/mortgage-repo.git +refs/heads/*:refs/remotes/origin/*
Seen 0 remote branches
ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job.

These commands work successfully when issued directly via the command line. After the build, the following error message appears in the Jenkins Slave log:

Jul 24, 2017 6:49:35 PM org.eclipse.jgit.util.FS discoverGitSystemConfig
WARNING: Exception caught during execution of command '[git, config, --system, --edit]' in '/var/rocket/bin', return code '128', error message '�atal: Could not switch to '/rsusr/rocket/etc/': EDC5129I No such file or directory.
'

We installed Git in /var/rocket and we invoke a gitenv.sh script at the beginning of the build so that everything is pointing to /var/rocket/* installation. We do not understand where the reference to /rsusr/rocket/etc is coming from. Is there anyway to redirect that reference to our installation directories in case it is trying to write some error or diagnostic messages?

    24 replies

    Aug 3, 2017 10:56 AM UTC

    We are currently experimenting with using Jenkins remote slave on USS to issue Git commands to Git installation. We have two test systems. On one of the test systems everything works as expected. On the second test system the Jenkins build fails during the Git fetch because it cannot find any remote branches. Both test systems are being invoked by the same Jenkins server and are connecting to the same remove Git server. We have not been able to identify what if any differences between the systems may be causing the inconsistent behavior.

    We are using a standard Jenkins Git Client plugin to access the remote repository. It issues four commands at the beginning of each build. Jenkins Build Log from the failing test system:

    Building remotely on tvt6031Dan in workspace /u/dbruce/test/jenkins/workspace/DansGitPull
     > /u/dbruce/test/dbb/sample/git-jenkins.sh rev-parse --is-inside-work-tree # timeout=10
    Fetching changes from the remote Git repository
     > /u/dbruce/test/dbb/sample/git-jenkins.sh config remote.origin.url ssh://drbruce@abc.com/git/mortgage-repo.git # timeout=10
    Fetching upstream changes from ssh://drbruce@abc.com/git/mortgage-repo.git
     > /u/dbruce/test/dbb/sample/git-jenkins.sh --version # timeout=10
    using GIT_SSH to set credentials Dans ee-jenkins git credentials
     > /u/dbruce/test/dbb/sample/git-jenkins.sh fetch --tags ssh://drbruce@abc.com/git/mortgage-repo.git +refs/heads/*:refs/remotes/origin/*
    Seen 0 remote branches
    ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job.
    

    These commands work successfully when issued directly via the command line. After the build, the following error message appears in the Jenkins Slave log:

    Jul 24, 2017 6:49:35 PM org.eclipse.jgit.util.FS discoverGitSystemConfig
    WARNING: Exception caught during execution of command '[git, config, --system, --edit]' in '/var/rocket/bin', return code '128', error message '�atal: Could not switch to '/rsusr/rocket/etc/': EDC5129I No such file or directory.
    '
    

    We installed Git in /var/rocket and we invoke a gitenv.sh script at the beginning of the build so that everything is pointing to /var/rocket/* installation. We do not understand where the reference to /rsusr/rocket/etc is coming from. Is there anyway to redirect that reference to our installation directories in case it is trying to write some error or diagnostic messages?

    I’ve added the two new variables in gitenv.sh and reran the test but it does not look like any additional information was added to git_trace.txt:

    DBRUCE:/u/dbruce>cat git_trace.txt
    14:35:26.370994 ./git.c:351             trace: built-in: git 'rev-parse' '--is-inside-work-tree'
    14:35:26.602884 ./git.c:351             trace: built-in: git 'config' 'remote.origin.url' 'ssh://drbruce@ee-jenkins.rtp.raleigh.ibm.com/git/mortgage-repo.git'
    14:35:26.859714 ./git.c:351             trace: built-in: git 'version'
    14:35:28.265430 ./git.c:351             trace: built-in: git 'fetch' '--tags' '--progress' 'ssh://drbruce@ee-jenkins.rtp.raleigh.ibm.com/git/mortgage-repo.git' '+refs/heads/*:refs/remotes/origin/*'
    14:35:28.266485 ./run-command.c:369     trace: run_command: '/tmp/ssh5628409048352164143.sh' 'drbruce@ee-jenkins.rtp.raleigh.ibm.com' 'git-upload-pack '\\''/git/mortgage-repo.git'\\'''
    14:35:28.335791 ./run-command.c:131     trace: execvp: '/tmp/ssh5628409048352164143.sh' 'drbruce@ee-jenkins.rtp.raleigh.ibm.com' 'git-upload-pack '\\''/git/mortgage-repo.git'\\'''
    14:35:30.925004 ./git.c:351             trace: built-in: git 'version'
    14:35:31.000139 ./git.c:351             trace: built-in: git 'config' '--system' '--edit'
    

    The results of the tsocmd | grep command are the same on both systems: /bin/sh Also in the Jenkins slave startup logs for both systems they are the same as well: SHELL=/bin/sh

    Tatiana Balaburkina
    Rocketeer
    Aug 4, 2017 7:59 AM UTC

    We are currently experimenting with using Jenkins remote slave on USS to issue Git commands to Git installation. We have two test systems. On one of the test systems everything works as expected. On the second test system the Jenkins build fails during the Git fetch because it cannot find any remote branches. Both test systems are being invoked by the same Jenkins server and are connecting to the same remove Git server. We have not been able to identify what if any differences between the systems may be causing the inconsistent behavior.

    We are using a standard Jenkins Git Client plugin to access the remote repository. It issues four commands at the beginning of each build. Jenkins Build Log from the failing test system:

    Building remotely on tvt6031Dan in workspace /u/dbruce/test/jenkins/workspace/DansGitPull
     > /u/dbruce/test/dbb/sample/git-jenkins.sh rev-parse --is-inside-work-tree # timeout=10
    Fetching changes from the remote Git repository
     > /u/dbruce/test/dbb/sample/git-jenkins.sh config remote.origin.url ssh://drbruce@abc.com/git/mortgage-repo.git # timeout=10
    Fetching upstream changes from ssh://drbruce@abc.com/git/mortgage-repo.git
     > /u/dbruce/test/dbb/sample/git-jenkins.sh --version # timeout=10
    using GIT_SSH to set credentials Dans ee-jenkins git credentials
     > /u/dbruce/test/dbb/sample/git-jenkins.sh fetch --tags ssh://drbruce@abc.com/git/mortgage-repo.git +refs/heads/*:refs/remotes/origin/*
    Seen 0 remote branches
    ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job.
    

    These commands work successfully when issued directly via the command line. After the build, the following error message appears in the Jenkins Slave log:

    Jul 24, 2017 6:49:35 PM org.eclipse.jgit.util.FS discoverGitSystemConfig
    WARNING: Exception caught during execution of command '[git, config, --system, --edit]' in '/var/rocket/bin', return code '128', error message '�atal: Could not switch to '/rsusr/rocket/etc/': EDC5129I No such file or directory.
    '
    

    We installed Git in /var/rocket and we invoke a gitenv.sh script at the beginning of the build so that everything is pointing to /var/rocket/* installation. We do not understand where the reference to /rsusr/rocket/etc is coming from. Is there anyway to redirect that reference to our installation directories in case it is trying to write some error or diagnostic messages?

    *** Rocket internal tracking reference: USSP-830 ***

    Aug 4, 2017 3:54 PM UTC

    We are currently experimenting with using Jenkins remote slave on USS to issue Git commands to Git installation. We have two test systems. On one of the test systems everything works as expected. On the second test system the Jenkins build fails during the Git fetch because it cannot find any remote branches. Both test systems are being invoked by the same Jenkins server and are connecting to the same remove Git server. We have not been able to identify what if any differences between the systems may be causing the inconsistent behavior.

    We are using a standard Jenkins Git Client plugin to access the remote repository. It issues four commands at the beginning of each build. Jenkins Build Log from the failing test system:

    Building remotely on tvt6031Dan in workspace /u/dbruce/test/jenkins/workspace/DansGitPull
     > /u/dbruce/test/dbb/sample/git-jenkins.sh rev-parse --is-inside-work-tree # timeout=10
    Fetching changes from the remote Git repository
     > /u/dbruce/test/dbb/sample/git-jenkins.sh config remote.origin.url ssh://drbruce@abc.com/git/mortgage-repo.git # timeout=10
    Fetching upstream changes from ssh://drbruce@abc.com/git/mortgage-repo.git
     > /u/dbruce/test/dbb/sample/git-jenkins.sh --version # timeout=10
    using GIT_SSH to set credentials Dans ee-jenkins git credentials
     > /u/dbruce/test/dbb/sample/git-jenkins.sh fetch --tags ssh://drbruce@abc.com/git/mortgage-repo.git +refs/heads/*:refs/remotes/origin/*
    Seen 0 remote branches
    ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job.
    

    These commands work successfully when issued directly via the command line. After the build, the following error message appears in the Jenkins Slave log:

    Jul 24, 2017 6:49:35 PM org.eclipse.jgit.util.FS discoverGitSystemConfig
    WARNING: Exception caught during execution of command '[git, config, --system, --edit]' in '/var/rocket/bin', return code '128', error message '�atal: Could not switch to '/rsusr/rocket/etc/': EDC5129I No such file or directory.
    '
    

    We installed Git in /var/rocket and we invoke a gitenv.sh script at the beginning of the build so that everything is pointing to /var/rocket/* installation. We do not understand where the reference to /rsusr/rocket/etc is coming from. Is there anyway to redirect that reference to our installation directories in case it is trying to write some error or diagnostic messages?

    You mentioned that this works on one system but not another. Have you tried adding the trace variable to the system that works? It would be interesting to see if there are any differences.

    I continue to be puzzled by the intent of git config --system --edit. Do you know where that is coming from, and what it’s supposed to do?

    Tatiana Balaburkina
    Rocketeer
    Oct 2, 2017 8:52 AM UTC

    We are currently experimenting with using Jenkins remote slave on USS to issue Git commands to Git installation. We have two test systems. On one of the test systems everything works as expected. On the second test system the Jenkins build fails during the Git fetch because it cannot find any remote branches. Both test systems are being invoked by the same Jenkins server and are connecting to the same remove Git server. We have not been able to identify what if any differences between the systems may be causing the inconsistent behavior.

    We are using a standard Jenkins Git Client plugin to access the remote repository. It issues four commands at the beginning of each build. Jenkins Build Log from the failing test system:

    Building remotely on tvt6031Dan in workspace /u/dbruce/test/jenkins/workspace/DansGitPull
     > /u/dbruce/test/dbb/sample/git-jenkins.sh rev-parse --is-inside-work-tree # timeout=10
    Fetching changes from the remote Git repository
     > /u/dbruce/test/dbb/sample/git-jenkins.sh config remote.origin.url ssh://drbruce@abc.com/git/mortgage-repo.git # timeout=10
    Fetching upstream changes from ssh://drbruce@abc.com/git/mortgage-repo.git
     > /u/dbruce/test/dbb/sample/git-jenkins.sh --version # timeout=10
    using GIT_SSH to set credentials Dans ee-jenkins git credentials
     > /u/dbruce/test/dbb/sample/git-jenkins.sh fetch --tags ssh://drbruce@abc.com/git/mortgage-repo.git +refs/heads/*:refs/remotes/origin/*
    Seen 0 remote branches
    ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job.
    

    These commands work successfully when issued directly via the command line. After the build, the following error message appears in the Jenkins Slave log:

    Jul 24, 2017 6:49:35 PM org.eclipse.jgit.util.FS discoverGitSystemConfig
    WARNING: Exception caught during execution of command '[git, config, --system, --edit]' in '/var/rocket/bin', return code '128', error message '�atal: Could not switch to '/rsusr/rocket/etc/': EDC5129I No such file or directory.
    '
    

    We installed Git in /var/rocket and we invoke a gitenv.sh script at the beginning of the build so that everything is pointing to /var/rocket/* installation. We do not understand where the reference to /rsusr/rocket/etc is coming from. Is there anyway to redirect that reference to our installation directories in case it is trying to write some error or diagnostic messages?

    Hi,

    Could you tell me if there is a ‘/rsusr/rocket/etc/’ directory on both machines?

    Oct 2, 2017 10:11 AM UTC

    We are currently experimenting with using Jenkins remote slave on USS to issue Git commands to Git installation. We have two test systems. On one of the test systems everything works as expected. On the second test system the Jenkins build fails during the Git fetch because it cannot find any remote branches. Both test systems are being invoked by the same Jenkins server and are connecting to the same remove Git server. We have not been able to identify what if any differences between the systems may be causing the inconsistent behavior.

    We are using a standard Jenkins Git Client plugin to access the remote repository. It issues four commands at the beginning of each build. Jenkins Build Log from the failing test system:

    Building remotely on tvt6031Dan in workspace /u/dbruce/test/jenkins/workspace/DansGitPull
     > /u/dbruce/test/dbb/sample/git-jenkins.sh rev-parse --is-inside-work-tree # timeout=10
    Fetching changes from the remote Git repository
     > /u/dbruce/test/dbb/sample/git-jenkins.sh config remote.origin.url ssh://drbruce@abc.com/git/mortgage-repo.git # timeout=10
    Fetching upstream changes from ssh://drbruce@abc.com/git/mortgage-repo.git
     > /u/dbruce/test/dbb/sample/git-jenkins.sh --version # timeout=10
    using GIT_SSH to set credentials Dans ee-jenkins git credentials
     > /u/dbruce/test/dbb/sample/git-jenkins.sh fetch --tags ssh://drbruce@abc.com/git/mortgage-repo.git +refs/heads/*:refs/remotes/origin/*
    Seen 0 remote branches
    ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job.
    

    These commands work successfully when issued directly via the command line. After the build, the following error message appears in the Jenkins Slave log:

    Jul 24, 2017 6:49:35 PM org.eclipse.jgit.util.FS discoverGitSystemConfig
    WARNING: Exception caught during execution of command '[git, config, --system, --edit]' in '/var/rocket/bin', return code '128', error message '�atal: Could not switch to '/rsusr/rocket/etc/': EDC5129I No such file or directory.
    '
    

    We installed Git in /var/rocket and we invoke a gitenv.sh script at the beginning of the build so that everything is pointing to /var/rocket/* installation. We do not understand where the reference to /rsusr/rocket/etc is coming from. Is there anyway to redirect that reference to our installation directories in case it is trying to write some error or diagnostic messages?

    Neither system had a /rsusr/rocket/etc/ directory originally. In both cases we did not have any references to that directory in our configuration. The only time that directory appeared in the Jenkins log was on the system that was failing during the Git pull. We eventually obtained permission to create that directory and once we did, that error message went away though the Git pull stilled failed. When we looked into the directory after the Git pull failed, there were no additional files created. Our guess is that the directory is hard coded somewhere in your code that gets executed during an error situation. We were hoping some additional diagnostic information was being logged there but in the end nothing was created.

    Oct 2, 2017 10:43 AM UTC

    We are currently experimenting with using Jenkins remote slave on USS to issue Git commands to Git installation. We have two test systems. On one of the test systems everything works as expected. On the second test system the Jenkins build fails during the Git fetch because it cannot find any remote branches. Both test systems are being invoked by the same Jenkins server and are connecting to the same remove Git server. We have not been able to identify what if any differences between the systems may be causing the inconsistent behavior.

    We are using a standard Jenkins Git Client plugin to access the remote repository. It issues four commands at the beginning of each build. Jenkins Build Log from the failing test system:

    Building remotely on tvt6031Dan in workspace /u/dbruce/test/jenkins/workspace/DansGitPull
     > /u/dbruce/test/dbb/sample/git-jenkins.sh rev-parse --is-inside-work-tree # timeout=10
    Fetching changes from the remote Git repository
     > /u/dbruce/test/dbb/sample/git-jenkins.sh config remote.origin.url ssh://drbruce@abc.com/git/mortgage-repo.git # timeout=10
    Fetching upstream changes from ssh://drbruce@abc.com/git/mortgage-repo.git
     > /u/dbruce/test/dbb/sample/git-jenkins.sh --version # timeout=10
    using GIT_SSH to set credentials Dans ee-jenkins git credentials
     > /u/dbruce/test/dbb/sample/git-jenkins.sh fetch --tags ssh://drbruce@abc.com/git/mortgage-repo.git +refs/heads/*:refs/remotes/origin/*
    Seen 0 remote branches
    ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job.
    

    These commands work successfully when issued directly via the command line. After the build, the following error message appears in the Jenkins Slave log:

    Jul 24, 2017 6:49:35 PM org.eclipse.jgit.util.FS discoverGitSystemConfig
    WARNING: Exception caught during execution of command '[git, config, --system, --edit]' in '/var/rocket/bin', return code '128', error message '�atal: Could not switch to '/rsusr/rocket/etc/': EDC5129I No such file or directory.
    '
    

    We installed Git in /var/rocket and we invoke a gitenv.sh script at the beginning of the build so that everything is pointing to /var/rocket/* installation. We do not understand where the reference to /rsusr/rocket/etc is coming from. Is there anyway to redirect that reference to our installation directories in case it is trying to write some error or diagnostic messages?

    We did eventually figure out that there was a configuration issue on the system that was failing during the Git pull. The problem was that the z/OS TCPIP RESOLVER is not configured correctly causing the domain name in the URL of the Git repository to not resolve.

    The Jenkins slave under OMVS uses the RESOLVER task for domain name resolution (this is also true for REXX scripts and C applications). On z/OS there are 2 ways to start the RESOLVER: either let UNIX start it or define a z/OS started procedure. (See https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.2.0/com.ibm.zos.v2r2.halz002/resolver_starting.htm). When UNIX starts the RESOLVER, it starts with a default configuration that doesn’t include the DNS definitions.

    A minor complaint we have for Rocket Git is that it seems to be swallowing the original error message and instead just issuing “Seen 0 remote branches” which is technically true but not very helpful when the problem is that a connection could not be created due to DNS failure. We are currently investigating another Jenkins issue where the Git pull is once again failing after we upgraded to the latest version of the Jenkins Git client plugin (and after we fixed the Resolver configuration). In that case as well the only error message we see in the log is “Seen 0 remote branches”.

    Tatiana Balaburkina
    Rocketeer
    Oct 3, 2017 7:38 AM UTC

    We did eventually figure out that there was a configuration issue on the system that was failing during the Git pull. The problem was that the z/OS TCPIP RESOLVER is not configured correctly causing the domain name in the URL of the Git repository to not resolve.

    The Jenkins slave under OMVS uses the RESOLVER task for domain name resolution (this is also true for REXX scripts and C applications). On z/OS there are 2 ways to start the RESOLVER: either let UNIX start it or define a z/OS started procedure. (See https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.2.0/com.ibm.zos.v2r2.halz002/resolver_starting.htm). When UNIX starts the RESOLVER, it starts with a default configuration that doesn’t include the DNS definitions.

    A minor complaint we have for Rocket Git is that it seems to be swallowing the original error message and instead just issuing “Seen 0 remote branches” which is technically true but not very helpful when the problem is that a connection could not be created due to DNS failure. We are currently investigating another Jenkins issue where the Git pull is once again failing after we upgraded to the latest version of the Jenkins Git client plugin (and after we fixed the Resolver configuration). In that case as well the only error message we see in the log is “Seen 0 remote branches”.

    Hi,

    Thanks for explanation and feedback. We are sorry that it was pretty difficult to find the real reason. However, Rocket Git is original git, which works in z/OS. We don’t make changes in tool’s functionality.

    Oct 22, 2018 8:48 PM UTC

    We are currently experimenting with using Jenkins remote slave on USS to issue Git commands to Git installation. We have two test systems. On one of the test systems everything works as expected. On the second test system the Jenkins build fails during the Git fetch because it cannot find any remote branches. Both test systems are being invoked by the same Jenkins server and are connecting to the same remove Git server. We have not been able to identify what if any differences between the systems may be causing the inconsistent behavior.

    We are using a standard Jenkins Git Client plugin to access the remote repository. It issues four commands at the beginning of each build. Jenkins Build Log from the failing test system:

    Building remotely on tvt6031Dan in workspace /u/dbruce/test/jenkins/workspace/DansGitPull
     > /u/dbruce/test/dbb/sample/git-jenkins.sh rev-parse --is-inside-work-tree # timeout=10
    Fetching changes from the remote Git repository
     > /u/dbruce/test/dbb/sample/git-jenkins.sh config remote.origin.url ssh://drbruce@abc.com/git/mortgage-repo.git # timeout=10
    Fetching upstream changes from ssh://drbruce@abc.com/git/mortgage-repo.git
     > /u/dbruce/test/dbb/sample/git-jenkins.sh --version # timeout=10
    using GIT_SSH to set credentials Dans ee-jenkins git credentials
     > /u/dbruce/test/dbb/sample/git-jenkins.sh fetch --tags ssh://drbruce@abc.com/git/mortgage-repo.git +refs/heads/*:refs/remotes/origin/*
    Seen 0 remote branches
    ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job.
    

    These commands work successfully when issued directly via the command line. After the build, the following error message appears in the Jenkins Slave log:

    Jul 24, 2017 6:49:35 PM org.eclipse.jgit.util.FS discoverGitSystemConfig
    WARNING: Exception caught during execution of command '[git, config, --system, --edit]' in '/var/rocket/bin', return code '128', error message '�atal: Could not switch to '/rsusr/rocket/etc/': EDC5129I No such file or directory.
    '
    

    We installed Git in /var/rocket and we invoke a gitenv.sh script at the beginning of the build so that everything is pointing to /var/rocket/* installation. We do not understand where the reference to /rsusr/rocket/etc is coming from. Is there anyway to redirect that reference to our installation directories in case it is trying to write some error or diagnostic messages?

    I am having this same issue. What was the problem with the Resolver and how did you fix it?

    Thanks.

    Oct 23, 2018 5:36 AM UTC

    I am having this same issue. What was the problem with the Resolver and how did you fix it?

    Thanks.

    Issue: A Jenkins Git client plugin failure may occur if the z/OS TCPIP RESOLVER is not configured correctly on USS. This condition will cause the Jenkins build to fail with the message “Seen 0 remote branches” appearing in the log.

    Cause: The Jenkins slave under OMVS uses the RESOLVER task for domain name resolution (this is also true for REXX scripts and C applications). On z/OS there are 2 ways to start the RESOLVER: either let UNIX start it or define a z/OS started procedure. When UNIX starts the RESOLVER, it starts with a default configuration that doesn’t include the DNS definitions.
    (See https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.2.0/com.ibm.zos.v2r2.halz002/resolver_starting.htm).

    Resolution: Customize the z/OS RESOLVER to include DNS definitions. Instructions can be found here: http://www-01.ibm.com/support/docview.wss?uid=swg21066874
    Alternately as a work around, substituting the domain name in the Git URL for the actual IP address will work as well i.e. https://github.com/IBM -> https://192.30.253.113/IBM

    Oct 23, 2018 7:11 AM UTC

    Issue: A Jenkins Git client plugin failure may occur if the z/OS TCPIP RESOLVER is not configured correctly on USS. This condition will cause the Jenkins build to fail with the message “Seen 0 remote branches” appearing in the log.

    Cause: The Jenkins slave under OMVS uses the RESOLVER task for domain name resolution (this is also true for REXX scripts and C applications). On z/OS there are 2 ways to start the RESOLVER: either let UNIX start it or define a z/OS started procedure. When UNIX starts the RESOLVER, it starts with a default configuration that doesn’t include the DNS definitions.
    (See https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.2.0/com.ibm.zos.v2r2.halz002/resolver_starting.htm).

    Resolution: Customize the z/OS RESOLVER to include DNS definitions. Instructions can be found here: http://www-01.ibm.com/support/docview.wss?uid=swg21066874
    Alternately as a work around, substituting the domain name in the Git URL for the actual IP address will work as well i.e. https://github.com/IBM -> https://192.30.253.113/IBM

    Thanks. I have verified everything with USS resolver and it is working fine. Checking the server side, gethostbyname.