cruisecontrol.net - Shared code libraries and cruise control testing -


I have 2 apps for sharing a common library Both apps and libraries are in active development. Both the applications include project files in their solution.

Folders are placed in source control:

  Root app 1 app2 library  

We currently have separate cruise control Is anytime committed to a file for app 1, app 2, or library folder hierarchies. Then a successful creation of the library will speed up the construction of App1 and AP2.

For the most part, it works well; The problem occurs when someone changes the library and app 1 (or app 2). This is usually done as a result of implementing a function, which requires any additions / additions to the library to be implemented. When triggers will be activated for both of these libraries (change in library \ foo.cs) and app 1 (change in app1 \ bar ccs). Both will see that the file base \ library \ foo.cs has been changed and an attempt has been made to rebuild the library. Only one will succeed because Fire will get a unique file lock to start writing an object file for the library; The second one immediately fails, it has happened many times that the construction failed due to someone entering in and manually locked was forced to run again.

Again, to reduce the risk of this incident and to reduce it, we trigger the voting interval for each so that they can separate the two firing at the same time Can set the value. It is still not right because the cycle between the library and the APNN will occur at the same time every NM * M seconds (as N and M in the respective voting interval).

Is there a possibility of a more elegant or less failure solution available?

Yes I believe that you want to keep all 3 projects in the same queue. This will allow the projects to be built together.

You want something like this in your CCNet.Config file:

  & lt; Project name = "Library" queue = "Q1" queue = "1" & gt; & Lt; Project Name = "App1" Qi = "Q1" Q Priority = "2" & gt; & Lt; Project Name = "App2" Qi = "Q1" Q Priority = "3" & gt;  

Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -