build-automation

Why does TeamCity miss a reference and fails compilation?

一曲冷凌霜 提交于 2019-12-05 17:37:59
I'm completely new to TeamCity and I'm using a simple Visual Studio 2008 solution to learn it. My solution has 2 projects: ConsoleApplication1 and ClassLibrary1. ConsoleApplication1 has a reference to ClassLibrary1. The solution compiles with no problem in VS directly. However, when I try to compile the same solution in TeamCity, it fails with error: Program.cs(13, 25): error CS0246: The type or namespace name 'ClassLibrary1' could not be found (are you missing a using directive or an assembly reference?) As far as I understand, the .sln file contains the required information to retrieve the

Avoiding re-building prerequisites in Ant

时间秒杀一切 提交于 2019-12-05 17:05:44
I have an existing Ant project and would like to speed up the build process by avoiding re-building components that are already up to date. Ant permits you to specify that one target depends on another, but by default every prerequisite is always rebuilt, even if it is already up to date. (This is a key difference between Ant and make. By default, make only re-builds a target when needed -- that is, if some prerequisite is newer.) <uptodate property="mytarget.uptodate"> // in set.mytarget.uptodate task ... </uptodate> <!-- The prerequisites are executed before the "unless" is checked. -->

Whats the best way to deliver TFS build status notifications to the team?

泪湿孤枕 提交于 2019-12-05 15:16:42
问题 I like the status email sent by TFS's alerts mechanism when a build breaks. However I would like to send such an email to the entire team and not rely on the team to subscribe to the alert... Having a hard time producing a nice and detailed enough message by myself when overriding the "OnBuildBreak" and using the MSBuildCommunityTasks EMail task. Is there a way to force a TFS alert to be sent to a list of emails? Can you recommend of a way to send such status notifications? 回答1: You could try

Why do Unit Test systems include useless assertive methods? [closed]

て烟熏妆下的殇ゞ 提交于 2019-12-05 13:15:41
Closed . This question is opinion-based . It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post . Closed 5 years ago . I'm wondering why unittest systems like PHPUnit include what seems to be repetitive operators that just add overhead to the unit tests. I can understand a couple of those methods, but most seem like a total waste of time. public function testPop(array stack) { this->assertEquals('foo', array_pop(stack)); this->assertEmpty(stack); } vs raw code (which is shorter and faster)

MSBuild - Getting the target called from command line

眉间皱痕 提交于 2019-12-05 12:58:54
问题 Does anyone know how to get the name of the TARGET (/t) called from the MSBuild command line? There are a few types of targets that can be called and I want to use that property in a notification to users. Example: msbuild Project.proj /t:ApplicationDeployment /p:Environment=DEV I want access to the target words ApplicationDeployment in my .Proj file. Is there a property I can access? Any clue how to do this? EDIT: I do not want to have to also pass in a property to get this. UPDATE: This is

SBT: Dependency On Other SBT Project Without Publishing

放肆的年华 提交于 2019-12-05 12:14:37
问题 I have a set of loosely related components where some of these depend on others. For concreteness, lets assume we have components "common", "a" and "b". "common" does not have any dependencies, but all other projects use "common". Furthermore, "a" depends on "b". All components are written in Scala, and I would like to use sbt to build them. The following properties would be nice to have: Multiple people work on the different projects, which is why we don't want to have a single repository,

Does MSBuild need Visual Studio to be installed?

老子叫甜甜 提交于 2019-12-05 11:27:27
I'm setting up a build server using Atlassian Bamboo. MSBuild is included with the .NET framework, so I believe I can build .NET applications fine at least without VS2010. We mostly develop in C++ - will I need to install Visual Studio on the build server to build .vcxproj C++ projects, or can this be done only with MSBuild? No you just need the toolset (libraries) see: http://msdn.microsoft.com/en-us/library/dd293607%28v=vs.100%29.aspx 来源: https://stackoverflow.com/questions/10063355/does-msbuild-need-visual-studio-to-be-installed

Does anyone know the CVS command line options to get the details of the last check in?

自作多情 提交于 2019-12-05 10:52:05
I'm using CVS on Windows (with the WinCVS front end), and would like to add details of the last check in to the email from our automated build process, whenever a build fails, in order to make it easier to fix. I need to know the files that have changed, the user that changed them, and the comment. I've been trying to work out the command line options, but never seem to get accurate results (either get too many result rather than just from one checkin, or details of some random check in from two weeks ago) Wow. I'd forgotten how hard this is to do. What I'd done before was a two stage process.

Continuous Integration with Teamcity and Clearcase

…衆ロ難τιáo~ 提交于 2019-12-05 10:19:57
Has anybody successfully integrated Clearcase with Teamcity (which advertises Clearcase support) to realize a productive continuous integration build environment on a decent size project? VonC Yes we have, but with a custom ClearCase plugin for TeamCity , in order to:: use a dynamic view set with a "time" directive , and to avoid hundreds of " descr -l " for each changed files (which would be Sparta, err, no, madness, would be madness since it would represents hundreds of transaction to the ClearCase server) Check out the TCCC plugin on GitHub. 来源: https://stackoverflow.com/questions/1688061

Making Jenkins (Hudson) job depend on another job

笑着哭i 提交于 2019-12-05 09:41:14
问题 I have two jobs: Upload Launch-instance I want to make Launch-instance dependent on the other one, so that triggering Launch-instance automatically causes Upload to be run first. Can I achieve this using built-in Jenkins features or with a plugin? Note that I do not want Upload to always trigger Launch-instance , which is what the "Build after other projects are built" option on Launch-instance would do. What I want is more analogous to how depends attribute works in Ant . 回答1: Have you tried