简体   繁体   中英

Issues with Continuous Integration trigger in TFS 2012

I have multiple solutions and common references for all my solutions in the source of my TeamProject as below.

TestTeamProject
    Source
       SolutionA
       SolutionB
       SolutionC
       References

All the solutions uses Referneces and each solution has a separate build definition. Whenever the build is triggered , a custom activity runs that check-ins their own binaries to the References folder( EX : If the Build Definition configured for SOlution A is triggered it copies the output dlls to References folder), since each solution has dependancies on each other.

Now i tried enabling continuous integration trigger on the Build Definition of SolutionA and it is going into a loop and triggering infinite builds.

Reason : Since i have References under the source settings of the Build Definition of Solution A , when ever the build is completed and the references are checked in by my activity, it is again triggering CI build

Is there any way i could restrict this behaviour by still enabling the CI trigger feature? Is there any extension that could be used to use filters for source control paths while setting up CI builds?

而不是让二进制文件放入源代码控制中,您应该使用NuGet软件包并将二进制依赖项作为NuGet软件包进行引用。

You can try to use the cloaked in the source settings-working folders to select the version control paths you want to include and exclude. (Note: suggest you to make sure these filters are consistent with your TFVC workspace mappings.)

For your situation you can cloaked the references folder 在此处输入图片说明

And since you are using the dll in references. The best way just as Daniel suggest using a package management system such as Nuget to host and deploy your dependencies can eliminate them from source control and allow you avoid the endless loop.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM