Issue Type: Bug Bug
Affects Versions: current
Assignee: Unassigned
Attachments: build.xml, log
Components: core
Created: 01/Jul/13 8:17 PM
Description:

This issue addresses the console log failing to display the log from a job executed on a Z/OS slave. I have debugged jenkins using the 1.519 src and discovered the physical log file is being written to disk and encoded as IBM1047. If the log file itself is viewed, you will find CR (carriage return) characters at the end of each line. If those characters are converted to either CR/LF pairs or just LF characters the log file is once again view-able by clicking the console log link. For testing purposes, I added a method to scrub the log file (modify the CR's as noted above) if the encoding is set to IBM1047 and call the method from within onEndBuilding() in hudson.model.Run. I can now view the log file via the console log after the build completes.

I'm attaching the build.xml and log from a Z/OS job run for reference.

Environment: awt.toolkit sun.awt.windows.WToolkit
executable-war C:\netprograms\Jenkins\jenkins.war
file.encoding Cp1252
file.encoding.pkg sun.io
file.separator \
hudson.diyChunking true
java.awt.graphicsenv sun.awt.Win32GraphicsEnvironment
java.awt.headless true
java.awt.printerjob sun.awt.windows.WPrinterJob
java.class.path jenkins.war
java.class.version 50.0
java.endorsed.dirs C:\Program Files (x86)\Java\jdk1.6.0_37\jre\lib\endorsed
java.ext.dirs C:\Program Files (x86)\Java\jdk1.6.0_37\jre\lib\ext;C:\Windows\Sun\Java\lib\ext
java.home C:\Program Files (x86)\Java\jdk1.6.0_37\jre
java.io.tmpdir C:\Users\jahaye\AppData\Local\Temp\
java.library.path C:\Program Files (x86)\Java\jdk1.6.0_37\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Perl\site\bin;C:\Perl\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\DMIX;C:\Program Files\SASHome\Secure;C:\Program Files\SASHome\x86\Secure;c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\Git\cmd;C:\Program Files (x86)\WinMerge;C:\Program Files (x86)\QuickTime\QTSystem\;\\ronco\public\dnt\tools;\\ronco\public\dnt\tools\inetW7\bin;C:\Program Files (x86)\Java\jdk1.6.0_37\bin;C:\netprograms\cmake\cmake-2.8.10-win32-x86\bin;C:\netprograms\gradle-1.3\bin;C:\cygwin\bin;.
java.runtime.name Java(TM) SE Runtime Environment
java.runtime.version 1.6.0_37-b06
java.specification.name Java Platform API Specification
java.specification.vendor Sun Microsystems Inc.
java.specification.version 1.6
java.vendor Sun Microsystems Inc.
java.vendor.url http://java.sun.com/
java.vendor.url.bug http://java.sun.com/cgi-bin/bugreport.cgi
java.version 1.6.0_37
java.vm.info mixed mode
java.vm.name Java HotSpot(TM) Server VM
java.vm.specification.name Java Virtual Machine Specification
java.vm.specification.vendor Sun Microsystems Inc.
java.vm.specification.version 1.0
java.vm.vendor Sun Microsystems Inc.
java.vm.version 20.12-b01
javamelody.analytics-id UA-1335263-7
javamelody.gzip-compression-disabled true
javamelody.http-transform-pattern /\d+/|/site/.+|avadoc/.+|/ws/.+|obertura/.+|estReport/.+|iolations/file/.+|/user/.+|/static/\w+/|/adjuncts/\w+/|/bound/[\w\-]+
javamelody.no-database true
javamelody.storage-directory /C:\Users\jahaye\.hudson\monitoring
javamelody.system-actions-enabled true
line.separator
mail.smtp.sendpartial true
mail.smtps.sendpartial true
os.arch x86
os.name Windows 7
os.version 6.1
path.separator ;
pid 11912
sun.arch.data.model 32
sun.boot.class.path C:\Program Files (x86)\Java\jdk1.6.0_37\jre\lib\resources.jar;C:\Program Files (x86)\Java\jdk1.6.0_37\jre\lib\rt.jar;C:\Program Files (x86)\Java\jdk1.6.0_37\jre\lib\sunrsasign.jar;C:\Program Files (x86)\Java\jdk1.6.0_37\jre\lib\jsse.jar;C:\Program Files (x86)\Java\jdk1.6.0_37\jre\lib\jce.jar;C:\Program Files (x86)\Java\jdk1.6.0_37\jre\lib\charsets.jar;C:\Program Files (x86)\Java\jdk1.6.0_37\jre\lib\modules\jdk.boot.jar;C:\Program Files (x86)\Java\jdk1.6.0_37\jre\classes
sun.boot.library.path C:\Program Files (x86)\Java\jdk1.6.0_37\jre\bin
sun.cpu.endian little
sun.cpu.isalist pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86
sun.desktop windows
sun.io.unicode.encoding UnicodeLittle
sun.java.command jenkins.war
sun.java.launcher SUN_STANDARD
sun.jnu.encoding Cp1252
sun.management.compiler HotSpot Tiered Compilers
sun.os.patch.level Service Pack 1
svnkit.http.methods Digest,Basic,NTLM,Negotiate
svnkit.ssh2.persistent false
user.country US
user.dir C:\netprograms\Jenkins
user.home C:\Users\jahaye
user.language en
user.name jahaye
user.timezone America/New_York
user.variant
Environment Variables

Name ↓
Value
=C: C:\netprograms\Jenkins
=ExitCode 00000082
ALLUSERSPROFILE C:\ProgramData
APPDATA C:\Users\jahaye\AppData\Roaming
CLASSPATH .;C:\Program Files (x86)\Java\jre7\lib\ext\QTJava.zip
COMPUTERNAME D74719
ComSpec C:\Windows\system32\cmd.exe
CommonProgramFiles C:\Program Files (x86)\Common Files
CommonProgramFiles(x86) C:\Program Files (x86)\Common Files
CommonProgramW6432 C:\Program Files\Common Files
DXSDK_DIR C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\
FLEX_HOME C:\DMV\Flex_SDK
FP_NO_HOST_CHECK NO
GRADLE_HOME C:\netprograms\gradle-1.3
HOMEDRIVE C:
HOMEPATH \Users\jahaye
JAVA_HOME C:\Program Files (x86)\Java\jdk1.6.0_37
LOCALAPPDATA C:\Users\jahaye\AppData\Local
LOCALDFS '\\sashq\root\regions\Cary'
LOGONSERVER \\SHQNADC06
NUMBER_OF_PROCESSORS 4
OS Windows_NT
PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE x86
PROCESSOR_ARCHITEW6432 AMD64
PROCESSOR_IDENTIFIER Intel64 Family 6 Model 42 Stepping 7, GenuineIntel
PROCESSOR_LEVEL 6
PROCESSOR_REVISION 2a07
PROMPT $P$G
PSModulePath C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
PUBLIC C:\Users\Public
Path C:\Perl\site\bin;C:\Perl\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\DMIX;C:\Program Files\SASHome\Secure;C:\Program Files\SASHome\x86\Secure;c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\Git\cmd;C:\Program Files (x86)\WinMerge;C:\Program Files (x86)\QuickTime\QTSystem\;\\ronco\public\dnt\tools;\\ronco\public\dnt\tools\inetW7\bin;C:\Program Files (x86)\Java\jdk1.6.0_37\bin;C:\netprograms\cmake\cmake-2.8.10-win32-x86\bin;C:\netprograms\gradle-1.3\bin;C:\cygwin\bin
ProgramData C:\ProgramData
ProgramFiles C:\Program Files (x86)
ProgramFiles(x86) C:\Program Files (x86)
ProgramW6432 C:\Program Files
QTJAVA C:\Program Files (x86)\Java\jre7\lib\ext\QTJava.zip
SESSIONNAME Console
SystemDrive C:
SystemRoot C:\Windows
TEMP C:\Users\jahaye\AppData\Local\Temp
TMP C:\Users\jahaye\AppData\Local\Temp
UATDATA C:\Windows\CCM\UATData\D9F8C395-CAB8-491d-B8AC-179A1FE1BE77
USERDNSDOMAIN NA.SAS.COM
USERDOMAIN CARYNT
USERNAME jahaye
USERPROFILE C:\Users\jahaye
VS100COMNTOOLS C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Tools\
windir C:\Windows
windows_tracing_flags 3
windows_tracing_logfile C:\BVTBin\Tests\installpackage\csilogfile.log
Plugins

Name ↓
Version
Enabled
Pinned
mailer 1.4 true false
external-monitor-job 1.1 true false
ldap 1.4 true true
pam-auth 1.0 true false
ant 1.2 true true
javadoc 1.1 true true
active-directory 1.33 true false
token-macro 1.6 true false
maven-plugin 1.509.1 true false
analysis-core 1.49 true false
ivy 1.22 true false
git-client 1.0.6 true false
multiple-scms 0.2 true false
subversion 1.45 true true
parameterized-trigger 2.17 true false
git 1.4.0 true false
gradle 1.22 true false
artifactory 2.1.5 true false
build-flow-plugin 0.9 true false
copyartifact 1.27 true false
credentials 1.4 true true
cvs 2.8 true true
email-ext 2.29 true false
envinject 1.85 true false
groovy 1.13 true false
ivytrigger 0.26 true false
job-import-plugin 1.0 true false
jobConfigHistory 2.4 true false
log-parser 1.0.8 true false
monitoring 1.44.0 true false
msbuild 1.17 true false
promoted-builds 2.10 true false
role-strategy 1.1.2 true false
ssh-credentials 0.3 true true
ssh-slaves 0.25 true true
translation 1.10 true true
warnings 4.26 true false
ws-cleanup 0.14 true false
Project: Jenkins
Priority: Major Major
Reporter: Jacky Hayes
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply via email to