Skip to main content

git version 2.26.2-84

Hi,


We issue Git commands from a Jenkins pipeline.

These commands are executed on a slave node on z/OS-USS through the Jenkins agent which is a Java component.

Git commands are correctly executed by Git for z/OS.

On the other hand, Git commands that produce a response trigger a problem: the response provided by the Git command is unusable if it is not preceded by a non-Git command that also produces a response.


echo sh(script: 'git status', returnStdout: true)

+ git status
[Pipeline] echo
çá à€ÀÁÈ/ÄÇÁÀ€/È€'ÃÃÄŽäÇ/>ÅÁË€>?È€ËÈ/ÅÁÀ€Ã?Ê€Ä?__ÑÈšŽ€€ˆÍËÁ€‚ÅÑÈ€/ÀÀ€ÃÑ%Áž‚€È?€ÍøÀ/ÈÁ€ÏÇ/È€ÏÑ%%€ÂÁ€Ä?__ÑÈÈÁÀ‰Ž€€ˆÍËÁ€‚ÅÑÈ€ÊÁËÈ?ÊÁ€ÃÑ%Áž‚€È?€ÀÑËÄ/ÊÀ€ÄÇ/>ÅÁË€Ñ>€Ï?Ê,Ñ>Å€ÀÑÊÁÄÈ?Ê`‰Ž_?ÀÑÃÑÁÀš€€€ÊÁ/À_Á_ÀŽŽí>ÈÊ/Ä,ÁÀ€ÃÑ%ÁËšŽ€€ˆÍËÁ€‚ÅÑÈ€/ÀÀ€ÃÑ%Áž‚€È?€Ñ>Ä%ÍÀÁ€Ñ>€ÏÇ/È€ÏÑ%%€ÂÁ€Ä?__ÑÈÈÁÀ‰ŽÅÑÈàáâíå%?ÅŽÈÁËÈ%?ÅŽŽ>?€ÄÇ/>ÅÁË€/ÀÀÁÀ€È?€Ä?__ÑÈ€ˆÍËÁ€‚ÅÑÈ€/ÀÀ‚€/>À?Ê€‚ÅÑÈ€Ä?__ÑÈ€/‚‰Ž

echo sh(script: 'pwd; git status', returnStdout: true)

+ pwd
+ git status
[Pipeline] echo
/u/JENKINS/workspace/CEH49/CEH49-CENTRAL-ENVIRONN-OUTINFR/ceab3-environn-outinfr-central-mvpdbb/master
HEAD detached at 701f2fc
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: readme.md

Untracked files:
(use "git add <file>..." to include in what will be committed)
gitDEBUG.log
test.log

no changes added to commit (use "git add" and/or "git commit -a")


Jenkins agent settings:

IBM_JAVA_COMMAND_LINE=java -Dfile.encoding=UTF-8 -Djava.io.tmpdir=/u/JENKINS/tmpdir -Xnoargsconversion -Dorg.jenkinsci.plugins.gitclient.CliGitAPIImpl.user.name.file.encoding=IBM-1047 -Dorg.jenkinsci.plugins.gitclient.CliGitAPIImpl.user.password.file.encoding=IBM-1047 -Djavax.net.ssl.trustStore=/u/JENKINS/articacerts -Djavax.net.ssl.trustStorePassword=changeit -jar remoting.jar -workDir /u/JENKINS -jar-cache /u/JENKINS/remoting/jarCache -text


Configuration of the user profile executing the commands:

export IBM_JAVA_ENABLE_ASCII_FILETAG='ON'
export _BPXK_AUTOCVT='ON'
export _CEE_RUNOPTS='FILETAG(AUTOCVT,AUTOTAG) POSIX(ON)'
export _TAG_REDIR_ERR='TXT'
export _TAG_REDIR_IN='TXT'
export _TAG_REDIR_OUT='TXT'



------------------------------
Fallai Denis
M
Self Registered
L'ISLE-ADAM FR
------------------------------