I am stumbling over exactly the same issue using Multibranch Pipelines. It seems to me that either script.sh needs to be created in the native character encoding, or script.sh should be tagged in z/OS UNIX System Services filesystems as ASCII. Writing in the native character encoding seems, to me, to be a more generic implementation. Maybe this is z/OS unique and it doesn't matter how it is implemented ... I have not found any possible workaround. For a Freestyle project, you set Java environment variables and the Java slave takes care of it. |