[ 
https://issues.jenkins-ci.org/browse/JENKINS-11069?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=163666#comment-163666
 ] 

Jeff Foege commented on JENKINS-11069:
--------------------------------------

I would love for this to be fixed. My devenv is in a folder with a path. If I 
put quotes around the config setup then it won't find devenv.exe at all. When I 
have no quotes around the devenv path I get an error 'd:\program' not a valid 
program. 
                
> Paths with spaces are not quoted
> --------------------------------
>
>                 Key: JENKINS-11069
>                 URL: https://issues.jenkins-ci.org/browse/JENKINS-11069
>             Project: Jenkins
>          Issue Type: Bug
>          Components: msbuild
>    Affects Versions: current
>         Environment: Windows, NET 4
>            Reporter: D C
>            Assignee: kdsweeney
>            Priority: Minor
>
> I have a build step with the MSBuild File configured thus:
> %WORKSPACE%\wbuilder_%NODE_NAME%_%JOB_NAME%\Alpha\AlphaBeta\AlphaSolution\AlphaSolution.sln
> Note that %WORKSPACE% will expand to C:\Program 
> Files\Jenkins\jobs\AlphaBeta\workspace
> This produces:
> ----------
> Executing command: cmd.exe /C 
> C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe 
> %WORKSPACE%\wbuilder_%NODE_NAME%_%JOB_NAME%\Alpha\AlphaBeta\AlphaSolution\AlphaSolution.sln
>  && exit %%ERRORLEVEL%%
> [wbuilder_master_AlphaBeta] $ cmd.exe /C 
> C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe 
> %WORKSPACE%\wbuilder_%NODE_NAME%_%JOB_NAME%\Alpha\AlphaBeta\AlphaSolution\AlphaSolution.sln
>  && exit %%ERRORLEVEL%%
> Microsoft (R) Build Engine Version 4.0.30319.1
> [Microsoft .NET Framework, Version 4.0.30319.235]
> Copyright (C) Microsoft Corporation 2007. All rights reserved.
> MSBUILD : error MSB1008: Only one project can be specified.
> Switch: 
> Files\Jenkins\jobs\AlphaBeta\workspace\wbuilder_master_AlphaBeta\Alpha\AlphaBeta\AlphaSolution\AlphaSolution.sln
> ----------
> MSBuild is not applying quotes to the expanded parameter, so it is executing:
> cmd.exe /C C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe 
> C:\Program 
> Files\Jenkins\jobs\AlphaBeta\workspace\wbuilder_master_AlphaBeta\Alpha\AlphaBeta\AlphaSolution\AlphaSolution.sln
>  && exit %%ERRORLEVEL%%
> There is a workaround which is to apply quotes in the Project configuration 
> UI but this is not an intuitive operation for a user.
> I would suggest that MSBuild apply quotes if they don't already exist around 
> the parameter.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to