It all depends on the exit code of devenv, if it exits with an error
code of 0, Jenkins will see it as a SUCCESS, otherwise it is a
failure. You probably need to call vcvarsall.bat first to set up all
the common paths and so forth, something like this:

call "c:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat" x86
devenv Product.sln /rebuild "Release|x86"



On Thu, Jun 7, 2012 at 8:53 AM, louwho <louels...@comcast.net> wrote:
> OK, I have a working VS 2008 MSBuild VB.net job.  Now I need to create a new
> job to handle Vs 2008 C++.  The MSbuild plugin will not work because VS 2008
> C++ does not have an assembly, so I will need to use Devenv.  I guess this
> will be a windows batch job, are there any examples of doing this
> (confile.xml file, cmd file)?  In the Vb.net job, using MSuild, the plugin
> would handle detecting if the job suceeds or fails (Correct?), how to handle
> this using Windows Batch?
>
> On Tuesday, June 5, 2012 9:33:08 PM UTC-4, slide wrote:
>>
>> I'll put it this way, anything you can do from the command line you can do
>> in Jenkins. There are plenty of wiki pages that you can use as reference
>>
>> Sent from my Windows Phone
>> ________________________________
>> From: louwho
>> Sent: 6/5/2012 5:46 PM
>> To: jenkinsci-users@googlegroups.com
>> Subject: Re: New guy questions
>>
>> How do you move steps around, edit a config file, which one?  Are there
>> any examples of a devenv project?  Is the book "Jenkins, the definitive
>> guide" of much use to a windows programmer, as things like GIt, MARVIN, etc,
>> will not be used?.  Is there a Windows book?  How to put "if" statements in,
>> like "don't do the batch cmd steps if there are no changes"?  How to set up
>> SMTP email, the example in the book (page 79), does not seem to work (using
>> our smtp email account).
>>
>> On Monday, June 4, 2012 8:11:03 PM UTC-4, louwho wrote:
>>>
>>> New to CI.  Tried Cruisecontrol.net, very hard to figure everything out.
>>> Is there a file behind the scenes in Jenkins, like the ccnet.config file in
>>> CCnet?  I am using this as a service on Windows. We have VB.net and C++
>>> projects.  I can use MSBuild for the VB stuff, but msbuild does not work
>>> well for c++ (Visual Studio 2008), can you use devenv in Jenkins (or what)?
>>> Can you point me to any related windows examples?
>>>
>>> I have the VB build working in Jenkins, now trying to get the binaries
>>> into SVN.  Is SVN Publisher only for Java projects,if not any examples how
>>> to do?  Is a windows cmd file the way to go using "SVN commit"? If you
>>> create steps in the wrong order, how to get them in correct order, (delete
>>> and re-create, or edit the behind the scenes file (if there is one))?  If
>>> you have spaces in the paths like "Program files", do you have to use quotes
>>> (URLs and paths)?
>>
>>
>> On Monday, June 4, 2012 8:11:03 PM UTC-4, louwho wrote:
>>>
>>> New to CI.  Tried Cruisecontrol.net, very hard to figure everything out.
>>> Is there a file behind the scenes in Jenkins, like the ccnet.config file in
>>> CCnet?  I am using this as a service on Windows. We have VB.net and C++
>>> projects.  I can use MSBuild for the VB stuff, but msbuild does not work
>>> well for c++ (Visual Studio 2008), can you use devenv in Jenkins (or what)?
>>> Can you point me to any related windows examples?
>>>
>>> I have the VB build working in Jenkins, now trying to get the binaries
>>> into SVN.  Is SVN Publisher only for Java projects,if not any examples how
>>> to do?  Is a windows cmd file the way to go using "SVN commit"? If you
>>> create steps in the wrong order, how to get them in correct order, (delete
>>> and re-create, or edit the behind the scenes file (if there is one))?  If
>>> you have spaces in the paths like "Program files", do you have to use quotes
>>> (URLs and paths)?
>>
>>
>> On Monday, June 4, 2012 8:11:03 PM UTC-4, louwho wrote:
>>>
>>> New to CI.  Tried Cruisecontrol.net, very hard to figure everything out.
>>> Is there a file behind the scenes in Jenkins, like the ccnet.config file in
>>> CCnet?  I am using this as a service on Windows. We have VB.net and C++
>>> projects.  I can use MSBuild for the VB stuff, but msbuild does not work
>>> well for c++ (Visual Studio 2008), can you use devenv in Jenkins (or what)?
>>> Can you point me to any related windows examples?
>>>
>>> I have the VB build working in Jenkins, now trying to get the binaries
>>> into SVN.  Is SVN Publisher only for Java projects,if not any examples how
>>> to do?  Is a windows cmd file the way to go using "SVN commit"? If you
>>> create steps in the wrong order, how to get them in correct order, (delete
>>> and re-create, or edit the behind the scenes file (if there is one))?  If
>>> you have spaces in the paths like "Program files", do you have to use quotes
>>> (URLs and paths)?



-- 
Website: http://earl-of-code.com

Reply via email to