Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Team Concert with Visual Studio builds.

Hi,

After being suggested to use JBE instead of CruiseControl, I have been exploring more about it .. I almost finished this video -> http://jazz.net/library/video/283 on (Part 3 - Getting started with Rational Team Concert and Microsoft Visual Studio).

However, around 7:14, under Build definition, author sets " cmd /c c:\demoblank\buildScript\build.bat " in the Command text box, and sets some arguments in the Argument field. Also command line-JBE was chosen. Please help me in creating a batch file for the same.. I have no idea, how was "build.bat" created, it's content/syntax etc .. A simple code snippet will help a lot. Thanks..

Also, I was thinking, can't we make/use Ant-JBE with Visual Studio? If yes, how? Though, I really want to complete this video tutorial's implementation, and can't do it fully, until I create build.bat .. without which it's completing build, but no links for download etc, as shown in tutorial.. Please help me create a batch file for the same.. Thank you so much...

Thanks,
Geny
p.s. Cross posting from Extending Team Concert , since not sure, where it's more applicable. Sorry.. Thanks..

0 votes



4 answers

Permanent link
There area some examples of how to callback into the Jazz build result in the following blog entry http://jazz.net/blog/index.php/2008/11/14/integrating-visual-studio-builds-with-team-concert/.

However the contents of the build.bat file is very simple. It's basically calling msbuild to build your solution. The output of any cmd based build is automatically attached to the build result. It's basically about writing a very simple bat file using the command line tools from Visual Studio to build and run tests.

You can run something simple such as

MSBuild.exe MyProject.proj /t:rebuild

Cheers,
Jean-Michel

0 votes


Permanent link
There area some examples of how to callback into the Jazz build result in the following blog entry http://jazz.net/blog/index.php/2008/11/14/integrating-visual-studio-builds-with-team-concert/.

However the contents of the build.bat file is very simple. It's basically calling msbuild to build your solution. The output of any cmd based build is automatically attached to the build result. It's basically about writing a very simple bat file using the command line tools from Visual Studio to build and run tests.

You can run something simple such as

MSBuild.exe MyProject.proj /t:rebuild

Cheers,
Jean-Michel


Thanks Jean, I tried something like this -->
C:\WINDOWS\Microsoft.NET\Framework\v3.5\MSBuild.exe E:\build\Source\Sample\Sample.csproj /t:rebuild in the bat file, and left the argument field blank, but no luck, instead it gave errors :(

Plus, I saw your tutorial, and found certain things extra in the end(I guess?), if possible, please spare few mins and watch --> http://jazz.net/library/video/283 , in this the author did very simple task and created a build.bat with some arguments send. I am wondering what would that build.bat file would look like, what would it contain, I wish there was a code snippet for the same. I am stuck since then, please help, please guide.

Thanks so much,
Geny

0 votes


Permanent link
I don't gave that build.bat file handy anymore. But all you have to do is follow the instructions that come with Visual Studio on how to build from the command line. Create a bat file that automates that call, then you can directly invoke that bat file from the build.
Cheers,
Jean-Michel

0 votes


Permanent link
I use "cmd /c build.bat" to invoke the command line build, with
build.bat containing:

setlocal
call "C:\Program Files\Microsoft Visual Studio 8\VC\vcvarsall.bat" x86
pushd c:\temp
msbuild "<pathtosolution>.sln"
popd
endlocal


Freddy
geny wrote:


Thanks Jean, I tried something like this --
C:\WINDOWS\Microsoft.NET\Framework\v3.5\MSBuild.exe
E:\build\Source\Sample\Sample.csproj /t:rebuild in the bat file, and
left the argument field blank, but no luck, instead it gave errors
:(

Plus, I saw your tutorial, and found certain things extra in the end(I
guess?), if possible, please spare few mins and watch --
http://jazz.net/library/video/283 , in this the author did very
simple task and created a build.bat with some arguments send. I am
wondering what would that build.bat file would look like, what would
it contain, I wish there was a code snippet for the same. I am stuck
since then, please help, please guide.

Thanks so much,
Geny

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Dec 23 '09, 2:18 p.m.

Question was seen: 6,993 times

Last updated: Dec 23 '09, 2:18 p.m.

Confirmation Cancel Confirm