z/OS Tools & Language

Expand all | Collapse all

Cloning Git repository via Jenkins job to zOS

  • 1.  Cloning Git repository via Jenkins job to zOS

    Posted 05-15-2020 05:23

    Hi
    I am trying to use jenkins job to clone a repository from Gitlab to z/OS USS.
    Manually via Git commands am able to clone to z/OS. But when i try to clone via Jenkins am getting below error.
    Started by user IBM Administrator
    Running as SYSTEM
    Building remotely on XXX in workspace /jenkins/workspace/Testjob
    using credential xxxxxxxxxxxxxxxxxxxx
    Cloning the remote Git repository
    Cloning repository git@xxx.xxx.xxx:demogroup/newdbbrepo.git

    /usr/lpp/IBM/dbb106/bin/git-jenkins.sh init /jenkins/workspace/Testjob # timeout=10
    Fetching upstream changes from git@xxx.xxx.xxx:demogroup/newdbbrepo.git
    /usr/lpp/IBM/dbb106/bin/git-jenkins.sh --version # timeout=10
    /usr/lpp/IBM/dbb106/bin/git-jenkins.sh --version # timeout=10
    /usr/lpp/IBM/dbb106/bin/git-jenkins.sh --version # timeout=10
    /usr/lpp/IBM/dbb106/bin/git-jenkins.sh --version # timeout=10
    /usr/lpp/IBM/dbb106/bin/git-jenkins.sh --version # timeout=10
    using GIT_ASKPASS to set credentials GitLabDemouser
    /usr/lpp/IBM/dbb106/bin/git-jenkins.sh fetch --tags git@xxx.xxx.xxx:demogroup/newdbbrepo.git +refs/heads/:refs/remotes/origin/ # timeout=10
    /usr/lpp/IBM/dbb106/bin/git-jenkins.sh config remote.origin.url git@xxx.xxx.xxx:demogroup/newdbbrepo.git # timeout=10
    /usr/lpp/IBM/dbb106/bin/git-jenkins.sh config --add remote.origin.fetch +refs/heads/:refs/remotes/origin/ # timeout=10
    /usr/lpp/IBM/dbb106/bin/git-jenkins.sh config remote.origin.url git@xxx.xxx.xxx:demogroup/newdbbrepo.git # timeout=10
    Fetching upstream changes from git@xxx.xxx.xxx:demogroup/newdbbrepo.git
    /usr/lpp/IBM/dbb106/bin/git-jenkins.sh --version # timeout=10
    /usr/lpp/IBM/dbb106/bin/git-jenkins.sh --version # timeout=10
    /usr/lpp/IBM/dbb106/bin/git-jenkins.sh --version # timeout=10
    /usr/lpp/IBM/dbb106/bin/git-jenkins.sh --version # timeout=10
    /usr/lpp/IBM/dbb106/bin/git-jenkins.sh --version # timeout=10
    using GIT_ASKPASS to set credentials GitLabDemouser
    /usr/lpp/IBM/dbb106/bin/git-jenkins.sh fetch --tags git@xxx.xxx.xxx:demogroup/newdbbrepo.git +refs/heads/:refs/remotes/origin/ # timeout=10
    Seen 0 remote branches

    /usr/lpp/IBM/dbb106/bin/git-jenkins.sh show-ref --tags -d # timeout=10
    git show-ref --tags -d output not matched in line: git: /usr/lpp/IBM/dbb106/bin/git-jenkins.sh 29: FSUM7351 not found
    ERROR: Couldn’t find any revision to build. Verify the repository and branch configuration for this job.
    Finished: FAILURE

    Referring to the error mentioned in the 29th line of git-jenkins.sh we have : git “$@” | iconv -f ibm-1047 -t ibm-1047 . We are using the same git-jenkins.sh file which we received during installation. This was working fine earlier with jenkins 2.222.1 and due to vm issue we installed a new jenkins server 2.222.3 and trying to configure with old setup but we are facing the issue with git cloning itself. Please anyone could help us in this?



  • 2.  RE: Cloning Git repository via Jenkins job to zOS

    Posted 05-28-2020 07:53

    Hi,
    Unfortunately, we don’t do support of other tools which call Git. Please, contact IBM support to resolve DBB issues.