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..
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..
4 answers
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
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
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
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:
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