Sorry David, but it is hard to understand your problem.
I am giving my code snippet so you can compare and check the difference.
Jenkins Job:
Execute windows batch command
C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe
/t:Rebuild /p:Configuration=%BuildType% /p:Platform="%BuildPlatform%"
/verbosity:normal %workspace%MyProj.sln
And check whether you have set up environment variables on your build server.
E.g. C:\winodws\system32
From: [email protected]
[mailto:[email protected]] On Behalf Of David Aldrich
Sent: Wednesday, September 04, 2013 8:07 AM
To: [email protected]
Subject: RE: Help needed with MsBuild plugin
I think there is not much to say.
The master configuration sets the MSBuild path to:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe
The build step is:
MS Build file: MSVC\MyProj.sln
Command line arguments: /p:Configuration=" release" /p:useenv=true
/flp:logfile=MyOutput.log;verbosity=diagnostic
David
From: [email protected]<mailto:[email protected]>
[mailto:[email protected]] On Behalf Of
[email protected]<mailto:[email protected]>
Sent: 04 September 2013 15:54
To: [email protected]<mailto:[email protected]>
Subject: RE: Help needed with MsBuild plugin
Can you provide configuration settings for your job , if possible?
And what are the steps you are adding for MSBuild?
From: [email protected]<mailto:[email protected]>
[mailto:[email protected]] On Behalf Of David Aldrich
Sent: Wednesday, September 04, 2013 7:49 AM
To: [email protected]<mailto:[email protected]>
Subject: RE: Help needed with MsBuild plugin
Hi
Thanks for your reply.
Yes, I had already done that.
David
From: [email protected]<mailto:[email protected]>
[mailto:[email protected]] On Behalf Of
[email protected]<mailto:[email protected]>
Sent: 04 September 2013 15:41
To: [email protected]<mailto:[email protected]>
Subject: RE: Help needed with MsBuild plugin
Hi,
Did you set up MSBuild configuration globally?
I mean, go to Manage Jenkins--> Configure System , you need to add which
version of MSBuild you going to use.
Try above and let us know whether it solved your problem or not.
From: [email protected]<mailto:[email protected]>
[mailto:[email protected]] On Behalf Of David Aldrich
Sent: Wednesday, September 04, 2013 4:28 AM
To: [email protected]<mailto:[email protected]>
Subject: Help needed with MsBuild plugin
Hi
I have used Jenkins for a long time but am now using the MSBuild plugin for the
first time, because we are migrating some build jobs from VC2008 to VC2010.
I have added a 'MSBuild installation' in Jenkins with the following path:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe
In my job, I specify the following MSBuild command line arguments:
p:Configuration="My_release" /p:useenv=true
/flp:logfile=MyOutput.log;verbosity=diagnostic
When I run the job I get this error:
error TRK0005: Failed to locate: "CL.exe". The system cannot find the file
specified.
Visual C++ 2010 is installed on the build machine and CL.exe is definitely
present.
I guess that MSBuild would typically be executed from a Visual Studio command
prompt which would have the environment variables correctly set up.
Do I need to configure the path when running the MSBuild plugin from Jenkins?
Best regards
David
--
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]<mailto:[email protected]>.
For more options, visit https://groups.google.com/groups/opt_out.
Click
here<https://www.mailcontrol.com/sr/szJBvIn6!BrGX2PQPOmvUv46NwAC7+vkNuaJfGCF!6bqywAqgIaj3FrSOpIPaCACXdIc+sLA36AX!sYT9IPN0A==>
to report this email as spam.
--
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]<mailto:[email protected]>.
For more options, visit https://groups.google.com/groups/opt_out.
--
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]<mailto:[email protected]>.
For more options, visit https://groups.google.com/groups/opt_out.
--
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]<mailto:[email protected]>.
For more options, visit https://groups.google.com/groups/opt_out.
--
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]<mailto:[email protected]>.
For more options, visit https://groups.google.com/groups/opt_out.
--
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/groups/opt_out.