GIT Source Control make trigger when files are changed in a Folder

前端 未结 2 1589
萌比男神i
萌比男神i 2021-01-28 03:48

I installed CCNET to make autobuild from a GIT server. I have a big problem here : My Git Server Repo Structure :

   Repo.git
      ---  Module 1(Folder 1)
             


        
相关标签:
2条回答
  • 2021-01-28 04:23

    In Git, if you have several directories that are always checked out independently, then these are really two different projects and should live in two different repositories. You can merge them back together at a later point using Git Submodules

    An alternative approach you can use Modification Writer Task. This tasks writes to an XML file, which can be evaluated from build script or batch file. Based on this you can do your build.

    0 讨论(0)
  • 2021-01-28 04:36

    the answer from @domu904 is correct.

    But if you do not want to change your project structure you can try to use the Filtered Source Control.

    With the Filtered Source Control you're abel to specify include and exclude filter rules for CCNet to detect modifications.

    So you can include just the specific git module folder in your module ccnet project.

    To trigger the dependend module ccnet projects use the Project Trigger.

    0 讨论(0)
提交回复
热议问题