Hello everyone,
I am trying to setup a Gitlab runner that will SSH from a RHEL into my z/OS USS and execute commands via Rocket Bash.
But I am hitting some issues that seems like an encoding issue when my runner is firing the commands and is not getting read correctly on Rocket Bash
Running with gitlab-runner 17.3.1 (66269445)
on SSH Runner abc123asif, system ID: a_bcde123452c1
Resolving secrets
Preparing the "ssh" executor
00:03
Using SSH executor...
Preparing environment
00:00
/usr/lpp/Rocket/rsusr/ported/bin/bash: line 1: $'226@24724323120120320525211206@242205243@': command not found
/usr/lpp/Rocket/rsusr/ported/bin/bash: line 1: $'226@227211227205206201211223^@206211^@242205243@': command not found
/usr/lpp/Rocket/rsusr/ported/bin/bash: line 1: $'361367362': command not found
/usr/lpp/Rocket/rsusr/ported/bin/bash: line 1: $'361': command not found
/usr/lpp/Rocket/rsusr/ported/bin/bash: line 1: $'242226244243210205201242243': command not found
/usr/lpp/Rocket/rsusr/ported/bin/bash: line 1: $'{Za244242231a202211225a205225245@2022012422102525242205243@226@O@207231205227@227211227205206201211223@n@a204205245a225244223223^@243210205225@242205243@226@20523123120524721124325242205243@N226@22522620322322620220220523125z@O@205245201223@[}205203210226@177331244225225211225207@226225@[M210226242243225201224205]@245211201@211227362360366K201227361K203226224227244243205K211225243205231225201223KKK177340225}25205247211243@36025': command not found
ERROR: Job failed: prepare environment: Process exited with status 127. Check https://docs.gitlab.com/runner/shells/index.html#shell-profile-loading for more information
in my etc/profile file I have also configured the following settings:
export _BPXK_AUTOCVT=ON
Changing the locale of the z/OS and also my RHEL
z/OS - locale from C to IBM-1047
LANG=En_US.IBM-1047
export LANG
RHEL - locale from UTF-8 to ISO8859-1
LANG=En_US.ISO8859-1
export LANG
I have also tried to set LC_ALL in my /etc/profile of z/OS to use IBM-1047 but am getting the below error:
bash: warning: setlocale: LC_ALL: cannot change locale (En_US.IBM-1047): No such file or directory