[JIRA] (JENKINS-37341) Add support of z/OS USS to sh step

2 views
Skip to first unread message

lutz.neugebauer@asg.com (JIRA)

unread,
Aug 11, 2016, 9:12:01 AM8/11/16
to jenkinsc...@googlegroups.com
Lutz Neugebauer created an issue
 
Jenkins / Improvement JENKINS-37341
Add support of z/OS USS to sh step
Issue Type: Improvement Improvement
Assignee: Jesse Glick
Components: durable-task-plugin
Created: 2016/Aug/11 1:11 PM
Environment: durable-task-1.10
Priority: Minor Minor
Reporter: Lutz Neugebauer

We are going to use the pipeline plugin with build nodes running under z/OS Unix System Services (USS). Unfortunately, the sh step does not work out of the box on that platform because (text) files are encoded by default in IBM1047 (some EBCDIC variant) but the implementation within the durable-task-plugin seems to assume implicitly that the shell input and output is in UTF-8 or ASCII based.

First experiments on top of durable-task-1.10 adding character set conversion in BourneShellScript and FileMonitoringTask to any read/write of files script.sh, pid, jenkins-result.txt and jenkins-log.txt were promising.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

jglick@cloudbees.com (JIRA)

unread,
Jan 4, 2017, 12:17:01 PM1/4/17
to jenkinsc...@googlegroups.com
Jesse Glick assigned an issue to Lutz Neugebauer
Change By: Jesse Glick
Assignee: Jesse Glick Lutz Neugebauer

jglick@cloudbees.com (JIRA)

unread,
Jan 4, 2017, 12:17:02 PM1/4/17
to jenkinsc...@googlegroups.com

jglick@cloudbees.com (JIRA)

unread,
Jan 4, 2017, 12:17:07 PM1/4/17
to jenkinsc...@googlegroups.com
Jesse Glick started work on Improvement JENKINS-37341
 
Change By: Jesse Glick
Status: Open In Progress

Ramchand.venkatasamy.mz7p@statefarm.com (JIRA)

unread,
Mar 6, 2018, 3:14:02 PM3/6/18
to jenkinsc...@googlegroups.com
Ramchand Venkatasamy assigned an issue to Unassigned
Change By: Ramchand Venkatasamy
Priority: Minor Major
Assignee: Lutz Neugebauer
This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)
Atlassian logo

Ramchand.venkatasamy.mz7p@statefarm.com (JIRA)

unread,
Mar 6, 2018, 3:21:03 PM3/6/18
to jenkinsc...@googlegroups.com
Ramchand Venkatasamy updated an issue
We are going to use the pipeline plugin with build nodes running under z/OS Unix System Services (USS). Unfortunately, the sh step does not work out of the box on that platform because (text) files are encoded by default in IBM1047 (some EBCDIC variant) but the implementation within the durable-task-plugin seems to assume implicitly that the shell input and output is in UTF-8 or ASCII based.

First experiments on top of durable-task-1.10 adding character set conversion in BourneShellScript and FileMonitoringTask to any read/write of files script.sh, pid, jenkins-result.txt and jenkins-log.txt were promising.


Update : - the Script.sh file is untagged in z/OS USS , if its tagged as ASCII the script can be executed in z/OS USS. when the script is pushed it need to be tagged as ASCII.

0x0100001001000111@gmail.com (JIRA)

unread,
Dec 17, 2018, 8:12:03 PM12/17/18
to jenkinsc...@googlegroups.com
Bruce Griffith commented on Improvement JENKINS-37341
 
Re: Add support of z/OS USS to sh step

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.

This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

dnusbaum@cloudbees.com (JIRA)

unread,
Jan 31, 2019, 10:17:02 AM1/31/19
to jenkinsc...@googlegroups.com

dnusbaum@cloudbees.com (JIRA)

unread,
Jan 31, 2019, 10:18:03 AM1/31/19
to jenkinsc...@googlegroups.com
Change By: Devin Nusbaum
Status: In Progress Fixed but Unreleased
Resolution: Fixed

dnusbaum@cloudbees.com (JIRA)

unread,
Jan 31, 2019, 10:18:03 AM1/31/19
to jenkinsc...@googlegroups.com
Devin Nusbaum commented on Improvement JENKINS-37341
 
Re: Add support of z/OS USS to sh step

PR 80 was merged, so z/OS support will be available in the next release.

dnusbaum@cloudbees.com (JIRA)

unread,
Jan 31, 2019, 2:01:03 PM1/31/19
to jenkinsc...@googlegroups.com
Devin Nusbaum updated an issue
 
Change By: Devin Nusbaum
Released As: durable-task 1.29

dnusbaum@cloudbees.com (JIRA)

unread,
Jan 31, 2019, 2:01:04 PM1/31/19
to jenkinsc...@googlegroups.com
 

This feature was just added in version 1.29 of the Durable Task plugin.

Change By: Devin Nusbaum
Status: Fixed but Unreleased Resolved

john.anu@gmail.com (JIRA)

unread,
May 8, 2019, 12:50:02 PM5/8/19
to jenkinsc...@googlegroups.com
Anu George updated an issue
Change By: Anu George
Attachment: image-2019-05-08-09-49-55-527.png

john.anu@gmail.com (JIRA)

unread,
May 8, 2019, 12:51:12 PM5/8/19
to jenkinsc...@googlegroups.com
Anu George commented on Improvement JENKINS-37341
 
Re: Add support of z/OS USS to sh step

I was trying to use this plugin to execute a sh file in z/OS USS, but gives error, so I just tried a simple step as below

pipeline {
agent { node

{ label 'KanplexUSSAgent' }

}
stages {
stage('build') {
steps

{ sh 'pwd' }

}
}
}

even this does not work. If anyone can give me suggestions, it will be helpful. Thanks in advance

lutz.neugebauer@asg.com (JIRA)

unread,
May 8, 2019, 1:16:02 PM5/8/19
to jenkinsc...@googlegroups.com

try

sh(encoding:'IBM1047', script:'pwd')

for the shell step

john.anu@gmail.com (JIRA)

unread,
May 8, 2019, 3:57:02 PM5/8/19
to jenkinsc...@googlegroups.com

Thanks Lutz Neugebauer , I tried the below  and it still doesn't work, same error

 

pipeline {
agent { node

{ label 'KanplexUSSAgent' }

}
stages {
stage('build') {
steps

{ //sh 'pwd' sh(encoding:'IBM-1047', script:'pwd') }

}
}
}

john.anu@gmail.com (JIRA)

unread,
May 8, 2019, 4:06:03 PM5/8/19
to jenkinsc...@googlegroups.com
Anu George edited a comment on Improvement JENKINS-37341
Thanks [~lne] , I tried the below  and it still doesn't work, same error

 

pipeline {
agent
\ { node

{ label 'KanplexUSSAgent' }

}
stages {
stage('build') {
steps


{

//sh 'pwd'

sh(encoding:'IBM-1047', script:'pwd')
}

}
}
}

lutz.neugebauer@asg.com (JIRA)

unread,
May 9, 2019, 3:43:02 AM5/9/19
to jenkinsc...@googlegroups.com

IBM1047 vs IBM-1047 doesn't make a difference at my end. So you might want to double check your plugin versions. Here it is running fine with:

  • durable-task 1.29
  • workflow-durable-task-step 2.24
  • workflow-job 2.21
    Due to the error message you might also want to check whether IBM1047 is supported by the involved JVMs.

john.anu@gmail.com (JIRA)

unread,
May 9, 2019, 6:48:02 PM5/9/19
to jenkinsc...@googlegroups.com

I am curious, do we need all three  plugins for this to work. I do have all,  but just checking. thanks . I need to check whether IBM1047 is supported.

Reply all
Reply to author
Forward
0 new messages