How can I prevent concurrent builds in CruiseControl.NET?

后端 未结 2 697
挽巷
挽巷 2021-02-08 05:48

We have several projects in CruiseControl and I noticed that often 2 or more projects are building at the same time. This seems to be causing conflicts. Often, a build fails a

2条回答
  •  清酒与你
    2021-02-08 06:10

    You have to do all builds that depend on each other, in one queue.

    The cruise control project configuration element has two attributes to control concurrency and order of build:

    
    

    With queue you can define in which queue the project shall be build, with queuePriority you can define the order of builds when several builds are requested.

    So two projects that cannot be build in parallel have to be on the same queue, say queue="Q1". When the second projects is dependend on the first one, the second project must have a higher priority than the first.

提交回复
热议问题