Build using devenv.exe from Jenkins

1,384 views
Skip to first unread message

Anitha Kabil Raj

unread,
Feb 17, 2015, 6:32:29 AM2/17/15
to jenkins...@googlegroups.com
Hello Group,
I have recently started using Jenkins for automating builds. I tried using MSBUILD plugin for building VC++ project using devnev.exe. I couldn't use it as the quotes around the configuration I was trying to build, "Release|Win32" was getting stripped. Is there any update available on this issue, or any workaround on same?
Now running devenev.exe from batch script. Here I see that the INCLUDE environment variable that I set is not getting picked by the project while build, hence the build fails. It is failing to include files from Windows DDK path, even after providing the path in INCLUDE variable. Anyone in group faced similar issue.
Since none of the these methods worked, I'm stuck and not able to proceed further.
Thanks in advance for the help,
Anitha

kfhickel

unread,
Feb 17, 2015, 7:32:47 AM2/17/15
to jenkins...@googlegroups.com
In your script, add /useenv as an argument to devenv.exe.

e.g.: instead of "devenv.exe proj.sln", you want to issue "devenv /useenv proj.sln".

-Kelly

Ginga, Dick

unread,
Feb 17, 2015, 8:56:36 AM2/17/15
to jenkins...@googlegroups.com

I use MSBUILD a lot. This is what my steps look like:

 

--
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 jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/c7a7258d-c128-4833-a651-b52632298232%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Anitha Kabil Raj

unread,
Feb 18, 2015, 12:12:41 AM2/18/15
to jenkins...@googlegroups.com
Thanks for the suggestion. I tried using msbuild now. But there is there a way to get the INCLUDE path set. All except the projects using files from Windows DDK path is getting built successfully.

Anitha Kabil Raj

unread,
Feb 18, 2015, 4:01:47 AM2/18/15
to jenkins...@googlegroups.com
Thanks much Kelly.
It worked.

Ginga, Dick

unread,
Feb 18, 2015, 8:20:29 AM2/18/15
to jenkins...@googlegroups.com

Well, what I have done is created a properties file of the environment variables set in a “Visual Studio Command Prompt” window. I load those through the Environmental Inject Plugin at the start of the job. Anything set in this way is available to all build steps.

 

From: jenkins...@googlegroups.com [mailto:jenkins...@googlegroups.com] On Behalf Of Anitha Kabil Raj
Sent: Wednesday, February 18, 2015 12:13 AM
To: jenkins...@googlegroups.com
Subject: Re: Build using devenv.exe from Jenkins

 

Thanks for the suggestion. I tried using msbuild now. But there is there a way to get the INCLUDE path set. All except the projects using files from Windows DDK path is getting built successfully.



On Tuesday, 17 February 2015 19:26:36 UTC+5:30, rginga wrote:

I use MSBUILD a lot. This is what my steps look like:

 

Image removed by sender.

 

From: jenkins...@googlegroups.com [mailto:jenkins...@googlegroups.com] On Behalf Of kfhickel
Sent: Tuesday, February 17, 2015 7:33 AM
To: jenkins...@googlegroups.com
Subject: Re: Build using devenv.exe from Jenkins

 

In your script, add /useenv as an argument to devenv.exe.

 

e.g.: instead of "devenv.exe proj.sln", you want to issue "devenv /useenv proj.sln".

 

-Kelly


On Tuesday, February 17, 2015 at 5:32:29 AM UTC-6, Anitha Kabil Raj wrote:

Hello Group,

I have recently started using Jenkins for automating builds. I tried using MSBUILD plugin for building VC++ project using devnev.exe. I couldn't use it as the quotes around the configuration I was trying to build, "Release|Win32" was getting stripped. Is there any update available on this issue, or any workaround on same?

Now running devenev.exe from batch script. Here I see that the INCLUDE environment variable that I set is not getting picked by the project while build, hence the build fails. It is failing to include files from Windows DDK path, even after providing the path in INCLUDE variable. Anyone in group faced similar issue.

Since none of the these methods worked, I'm stuck and not able to proceed further.

Thanks in advance for the help,

Anitha

--
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 jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/c7a7258d-c128-4833-a651-b52632298232%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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 jenkinsci-use...@googlegroups.com.

Reply all
Reply to author
Forward
0 new messages