Follow-up: I've gotten Jenkins working fine on z/OS, pushing builds from Windows, running the tests on z/OS, and publishing the results to tomcat running on z/OS.
There were three key things for me to get working/understand that may be helpful to others. Some or all of these may have already been mentioned by others here or elsewhere: 1. ssh on z/OS - the key here for me was these changes to the sshd_config config file in /etc/sshd: StrictModes no But, also, I had to do a number of things around setting folder and file ownership and permissions (see the z/OS redbook on ssh, very helpful) and work to synch up ssh on my cygwin/Windows with ssh on z/OS (I assume all of this is standard ssh) - this was all to get password-less login to work. 2. When I setup z/OS slave(s) in Jenkins, using ssh to invoke the slave jar, the script I have it invoke to run the jar has this command in it: java -Dfile.encoding=ISO8859_1 -jar /usr/local/jenkins/slave.jar -text This seemed to resolve any ASCII/EBCDIC issues I was seeing. 3. To run the Jenkins jobs I had to explicitly set the jobs to run on Windows, using: Restrict where this project can be run setting the Label Expression to "master". Then to execute the job on z/OS I used build "Execute Windows batch command" with an ssh command to invoke the desired script on z/OS; e.g.: ssh <USER>@<HOST> su -s <RACF_SURROGATE_USER> -c <SCRIPT_ON_ZOS_TO_RUN> And voila, that's it! There are a lot of details underneath this and I had certain machinations I had to go through for local requirements (e.g. RACF surrogate to allow me to rebuild a Websphere profile file system). www On Monday, December 30, 2013 8:41:40 AM UTC-8, [email protected] wrote: > > > I see a similar issue; I can't get as far as getting the commands from > Jenkins to run on z/OS. That is I see errors like this: > [zOS unit tests] $ /bin/sh -xe /tmp/hudson4437459291454251752.sh > + Ž ÍËÊ %?Ä/% ÂÑ > + 1> ¢Á 1> ,Ñ 1> Ë^Í 1> ÑÈÈÁËÈË ËÇ > Ž ÍËÊ %?Ä/% ÂÑ: /tmp/hudson4437459291454251752.sh 1: FSUM7351 not found > > The slave looks to be running fine on z/OS: java > -Dfile.encoding=ISO8859_1 -jar /usr/local/jenkins/slave.jar -text > and I can get System Information fine for the node. > > I've gone through this thread, but I don't see any correspondence to the > classes in remoting-2.25-SNAPSHOT.jar and my 1.535 version of Jenkins. > > So, obviously I have some kind of EBCDIC/ASCII mismatch between my Windows > Master and z/OS. > As far as I know z/OS UNIX shell requires script files to be in EBCDIC, > otherwise it's reasonably easy to deal with ASCII and EBCDIC from their > (e.g. via Java), but EBCDIC has to be a starting point. > > So, if anyone knows what I'm missing please let me know. > > www > > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
