[JIRA] [master-slave] (JENKINS-11992) Win7 x64: x86 Java runtime creates bad PATH on x64 OS causing ' \Java\jre6\bin was unexpected at this time.' error
Robert Grampp commented on JENKINS-11992 Win7 x64: x86 Java runtime creates bad PATH on x64 OS causing \Java\jre6\bin was unexpected at this time. error I wished, one of the Jenkins developers would do that in the Jenkins code ... 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/d/optout.
[JIRA] [master-slave] (JENKINS-11992) Win7 x64: x86 Java runtime creates bad PATH on x64 OS causing ' \Java\jre6\bin was unexpected at this time.' error
Gwen Georgeault commented on JENKINS-11992 Win7 x64: x86 Java runtime creates bad PATH on x64 OS causing \Java\jre6\bin was unexpected at this time. error I patch the problem doing this, essentially removing the quotes in the PATH variable prior to calling the batch file exposing the problem: set path=%path:"=% CALL "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\vcvarsall.bat" x86 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/d/optout.
[JIRA] [master-slave] (JENKINS-11992) Win7 x64: x86 Java runtime creates bad PATH on x64 OS causing ' \Java\jre6\bin was unexpected at this time.' error
ilie daniel commented on JENKINS-11992 Win7 x64: x86 Java runtime creates bad PATH on x64 OS causing \Java\jre6\bin was unexpected at this time. error Workaround for my ant script: target name="runBat" !-- Remove quotes from Path: https://issues.jenkins-ci.org/browse/JENKINS-11992 -- loadresource property="clean.Path" propertyresource name="env.Path" / filterchain tokenfilter filetokenizer / replacestring from="" to="" / /tokenfilter /filterchain /loadresource exec executable="cmd.exe" spawn="yes" vmlauncher="false" dir="./${run.dir}" env key="BUILD_ID" value="dontKillMe" / env key="Path" value="${clean.Path}" / arg line="/k call ${bat.file}" / /exec /target 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/d/optout.
[JIRA] [master-slave] (JENKINS-11992) Win7 x64: x86 Java runtime creates bad PATH on x64 OS causing ' \Java\jre6\bin was unexpected at this time.' error
Robert Grampp commented on JENKINS-11992 Win7 x64: x86 Java runtime creates bad PATH on x64 OS causing \Java\jre6\bin was unexpected at this time. error Hi Chris, thanks for your suggestion, but the problem isn't having spaces in a directory path. The initial problem is that Jenkins adds the path to Java surrounded with quotes! Jenkins adds ;"C:\Program Files (x86)\Java\jre6\bin" to PATH variable. On Windows even directories containing spaces are added without surrounded spaces. That's the change that the Jenkins developers should do. You see this when calling path command on any Windows system, e. g. = PATH=C:\Program Files\Common Files\Microsoft Shared\... 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/d/optout.
[JIRA] [master-slave] (JENKINS-11992) Win7 x64: x86 Java runtime creates bad PATH on x64 OS causing ' \Java\jre6\bin was unexpected at this time.' error
Chris Anilao commented on JENKINS-11992 Win7 x64: x86 Java runtime creates bad PATH on x64 OS causing \Java\jre6\bin was unexpected at this time. error I had a similar issue related to microsoft's webdeploy (http://weblogs.asp.net/scottgu/archive/2010/09/13/automating-deployment-with-microsoft-web-deploy.aspx). I worked around the issue by using the shortened versions of the directories. You can find out what what they are by typing dir /x. My command ended up looking like this: MSBuild c:\PROGRA~2\Jenkins\jobs\REPVIE~1\workspace\Builder\RepView\RepView.csproj /p:DeployOnBuild=true /p:PublishProfile=JenkinsDeployment c:\PROGRA~2\Jenkins\jobs\REPVIE~1\workspace\Builder\RepView\obj\Debug\Package\RepView.deploy.cmd /y /M:http://target-address /u:username /p:password Because the deploy.cmd file is generated, using the shortened names for the directories when MSBuild is called, gets around this issue. I hope this applies to other issues that people are having with this bug. 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/d/optout.
[JIRA] [master-slave] (JENKINS-11992) Win7 x64: x86 Java runtime creates bad PATH on x64 OS causing ' \Java\jre6\bin was unexpected at this time.' error
Robert Grampp updated JENKINS-11992 Win7 x64: x86 Java runtime creates bad PATH on x64 OS causing \Java\jre6\bin was unexpected at this time. error Change By: Robert Grampp (25/Apr/14 9:34 AM) Priority: Minor Major 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/d/optout.
[JIRA] [master-slave] (JENKINS-11992) Win7 x64: x86 Java runtime creates bad PATH on x64 OS causing ' \Java\jre6\bin was unexpected at this time.' error
Robert Grampp commented on JENKINS-11992 Win7 x64: x86 Java runtime creates bad PATH on x64 OS causing \Java\jre6\bin was unexpected at this time. error Changed level to Major since slave build with MS Visual Studio is impossible with this Jenkins behaviour. 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/d/optout.
[JIRA] [master-slave] (JENKINS-11992) Win7 x64: x86 Java runtime creates bad PATH on x64 OS causing ' \Java\jre6\bin was unexpected at this time.' error
Harshi Allen commented on JENKINS-11992 Win7 x64: x86 Java runtime creates bad PATH on x64 OS causing \Java\jre6\bin was unexpected at this time. error I agree! This should be changed to Major. We're having the same issue with VS 2012 scripts. We are getting around the issue by setting the PATH variable not to have those extra quotation marks right before calling the VS scripts. 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/d/optout.
[JIRA] [master-slave] (JENKINS-11992) Win7 x64: x86 Java runtime creates bad PATH on x64 OS causing ' \Java\jre6\bin was unexpected at this time.' error
Robert Grampp edited a comment on JENKINS-11992 Win7 x64: x86 Java runtime creates bad PATH on x64 OS causing \Java\jre6\bin was unexpected at this time. error I would like to see this bug raised to level MAJOR since a command line build with Microsoft Studio 11 is impossible with this Jenkins behaviour. It crashes when calling Microsofts script vcvarsall.bat! Job log: C:\Users\plossys\workspace\Test_Slave_Windows_VC_Buildpath PATH=C:\Program Files (x86)\Java\jdk1.6.0_37_32b/bin;C:\Program Files (x86)\Java\jdk1.6.0_37_32b/bin;C:\Program Files (x86)\Java\jre6\bin;C:\Program Files (x86)\Mozilla Firefox;C:\Program Files (x86)\Java\jre6\bin;C:\ruby200\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\TortoiseGit\bin;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\VisualSVN\bin;C:\strawberry\c\bin;C:\strawberry\perl\site\bin;C:\strawberry\perl\bin;C:\Chocolatey\bin;C:\sysinternals;"C:\Program Files (x86)\Java\jre6\bin" C:\Users\plossys\workspace\Test_Slave_Windows_VC_Build"C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\vcvarsall.bat" amd64 \Java\jre6\bin"" was unexpected at this time. Build step 'Windows Batch-Datei ausführen' marked build as failure Jenkins slave is connected via JNLP launcher (Java Applet), not via Windows service cause that raised too much hassle with firewall/group policy issues. 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/d/optout.
[JIRA] [master-slave] (JENKINS-11992) Win7 x64: x86 Java runtime creates bad PATH on x64 OS causing ' \Java\jre6\bin was unexpected at this time.' error
Robert Grampp commented on JENKINS-11992 Win7 x64: x86 Java runtime creates bad PATH on x64 OS causing \Java\jre6\bin was unexpected at this time. error I would like to see this bug raised to level MAJOR since a command line build with Microsoft Studio 11 is impossible with this Jenkins behaviour. It crashes when calling Microsofts script vcvarsall.bat! Job log: C:\Users\plossys\workspace\Test_Slave_Windows_VC_Buildpath PATH=C:\Program Files (x86)\Java\jdk1.6.0_37_32b/bin;C:\Program Files (x86)\Java\jdk1.6.0_37_32b/bin;C:\Program Files (x86)\Java\jre6\bin;C:\Program Files (x86)\Mozilla Firefox;C:\Program Files (x86)\Java\jre6\bin;C:\ruby200\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\TortoiseGit\bin;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\VisualSVN\bin;C:\strawberry\c\bin;C:\strawberry\perl\site\bin;C:\strawberry\perl\bin;C:\Chocolatey\bin;C:\sysinternals;"C:\Program Files (x86)\Java\jre6\bin" C:\Users\plossys\workspace\Test_Slave_Windows_VC_Build"C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\vcvarsall.bat" amd64 \Java\jre6\bin"" was unexpected at this time. Build step 'Windows Batch-Datei ausführen' marked build as failure Jenkins slave is connected via JNLP launcher (Java Applet), not via Windows service cause that raised too much hassle with firewall/group policy issues. 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/d/optout.
[JIRA] [master-slave] (JENKINS-11992) Win7 x64: x86 Java runtime creates bad PATH on x64 OS causing ' \Java\jre6\bin was unexpected at this time.' error
Robert Grampp edited a comment on JENKINS-11992 Win7 x64: x86 Java runtime creates bad PATH on x64 OS causing \Java\jre6\bin was unexpected at this time. error I would like to see this bug raised to level MAJOR since a command line build with Microsoft Visual Studio 11 is impossible with this Jenkins behaviour. It crashes when calling Microsofts script vcvarsall.bat! Job log: C:\Users\plossys\workspace\Test_Slave_Windows_VC_Buildpath PATH=C:\Program Files (x86)\Java\jdk1.6.0_37_32b/bin;C:\Program Files (x86)\Java\jdk1.6.0_37_32b/bin;C:\Program Files (x86)\Java\jre6\bin;C:\Program Files (x86)\Mozilla Firefox;C:\Program Files (x86)\Java\jre6\bin;C:\ruby200\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\TortoiseGit\bin;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\VisualSVN\bin;C:\strawberry\c\bin;C:\strawberry\perl\site\bin;C:\strawberry\perl\bin;C:\Chocolatey\bin;C:\sysinternals;"C:\Program Files (x86)\Java\jre6\bin" C:\Users\plossys\workspace\Test_Slave_Windows_VC_Build"C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\vcvarsall.bat" amd64 \Java\jre6\bin"" was unexpected at this time. Build step 'Windows Batch-Datei ausführen' marked build as failure Jenkins slave is connected via JNLP launcher (Java Applet), not via Windows service cause that raised too much hassle with firewall/group policy issues. 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/d/optout.
[JIRA] [master-slave] (JENKINS-11992) Win7 x64: x86 Java runtime creates bad PATH on x64 OS causing ' \Java\jre6\bin was unexpected at this time.' error
Colin Andrews commented on JENKINS-11992 Win7 x64: x86 Java runtime creates bad PATH on x64 OS causing \Java\jre6\bin was unexpected at this time. error I am still seeing quoted path to the jre bin added to path even when I changed to the 64 bit JRE. I can't believe this still hasn't been fixed. This makes a large category of jobs un-runnable under Jenkins on Windows. 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.
[JIRA] [master-slave] (JENKINS-11992) Win7 x64: x86 Java runtime creates bad PATH on x64 OS causing ' \Java\jre6\bin was unexpected at this time.' error
Kevin Wojniak commented on JENKINS-11992 Win7 x64: x86 Java runtime creates bad PATH on x64 OS causing \Java\jre6\bin was unexpected at this time. error Got this with Jenkins 1.522. Read somewhere else that the 64-bit version of Java works, not sure why though. So I uninstalled 32-bit Java and installed 64-bit version, and now the build script gets beyond this error. 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.
[JIRA] [master-slave] (JENKINS-11992) Win7 x64: x86 Java runtime creates bad PATH on x64 OS causing ' \Java\jre6\bin was unexpected at this time.' error
Steven Cole commented on JENKINS-11992 Win7 x64: x86 Java runtime creates bad PATH on x64 OS causing \Java\jre6\bin was unexpected at this time. error @Kevin: The "reason" why the 32-bit version doesn't work is because that forces the path name to have "(x86)" embedded within. And the thing that makes the runtime path adds quotation marks when parentheses appear in the path. So when you install the 64-bit version of Java, the path doesn't have parentheses, and quotation marks are not added. 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.
[JIRA] [master-slave] (JENKINS-11992) Win7 x64: x86 Java runtime creates bad PATH on x64 OS causing ' \Java\jre6\bin was unexpected at this time.' error
David Riggleman edited a comment on JENKINS-11992 Win7 x64: x86 Java runtime creates bad PATH on x64 OS causing \Java\jre6\bin was unexpected at this time. error I found this issue quite frustrating. After wasting time wondering why my Powershell script worked if I ran it manually but not if it ran through Jenkins, I eventually came across this issue and determined the root cause. Yes, the issue may be listed as minor, but the headaches that it causes, it would seem to be worth the presumably minimal effort to fix this. My workaround was similar to what others have mentioned in manually fixing the path at the top of my script. Since I'm working with a Powershell script, here's the code I've got at the very top of my script to fix the problem: Perforce Script $env:PATH = $env:PATH -replace '"', "" 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.
[JIRA] [master-slave] (JENKINS-11992) Win7 x64: x86 Java runtime creates bad PATH on x64 OS causing ' \Java\jre6\bin was unexpected at this time.' error
David Riggleman commented on JENKINS-11992 Win7 x64: x86 Java runtime creates bad PATH on x64 OS causing \Java\jre6\bin was unexpected at this time. error I found this issue quite frustrating. After wasting time wondering why my Powershell script worked if I ran it manually but not if it ran through Jenkins, I eventually came across this issue and determined the root cause. Yes, the issue may be listed as minor, but the headaches that it causes, it would seem to be worth the presumably minimal effort to fix this. My workaround was similar to what others have mentioned in manually fixing the path at the top of my script. Since I'm working with a Powershell script, here's the code I've got at the very top of my script to fix the problem: Perforce Script $env:PATH = $env:PATH -replace '"', "" 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.
[JIRA] [master-slave] (JENKINS-11992) Win7 x64: x86 Java runtime creates bad PATH on x64 OS causing ' \Java\jre6\bin was unexpected at this time.' error
David Riggleman edited a comment on JENKINS-11992 Win7 x64: x86 Java runtime creates bad PATH on x64 OS causing \Java\jre6\bin was unexpected at this time. error I found this issue quite frustrating. After wasting time wondering why my Powershell script worked if I ran it manually but not if it ran through Jenkins, I eventually came across this issue and determined the root cause. Yes, the issue may be listed as minor, but the considering headaches that it causes, it would seem to be worth the presumably minimal effort to fix this. My workaround was similar to what others have mentioned in manually fixing the path at the top of my script. Since I'm working with a Powershell script, here's the code I've got at the very top of my script to fix the problem: Perforce Script $env:PATH = $env:PATH -replace '"', "" 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.