Multiple CruiseControl Source Folders

I want to compile a project (with CruiseControl) not only when its source changes, but also when some dependencies change.

Example: I have 3 folders:

c: \ myProject \ src (my source folder)
c: \ dependency1 \ src (dependency 1 source code)
c: \ dependency2 \ output (dependency 2 dll)

I want to compile my project in cruisecontrol if anything in one of these folders changes.

How can I configure this in my ccnet.config?

bye and thanks Juergen

+2


a source to share


2 answers


If you have configuration dependencies as external variables subversion, follow the instructions fooobar.com/questions/1279516 / ... .

If they are in their own subversion repository, you can try something like this post from Mark Cohen .



If the changes are only at the file system level, you can try <filesystem>

change detector.

+2


a source


There should be something like this:



<project>
  <!-- ... -->
  <sourcecontrol type="multi">
    <requireChangesFromAll>False</requireChangesFromAll>
    <sourceControls>
      <svn>
        <trunkUrl>svn://svn.mycompany.com/myProject/trunk</trunkUrl>
        <workingDirectory>c:\myProject\src</workingDirectory>
        <!-- ... -->
      </svn>
      <svn>
        <trunkUrl>svn://svn.mycompany.com/dependency1/trunk</trunkUrl>
        <workingDirectory>c:\dependency1\src</workingDirectory>
        <!-- ... -->
      </svn>
      <filtered>
        <exclusionFilters />
        <inclusionFilters>
          <pathFilter>
            <caseSensitive>False</caseSensitive>
            <pattern>c:\dependency2\output\dependency2.dll</pattern>
          </pathFilter>
        </inclusionFilters>
        <sourceControlProvider type="filesystem">
          <autoGetSource>False</autoGetSource>
          <ignoreMissingRoot>True</ignoreMissingRoot>
          <repositoryRoot>c:\dependency2\output</repositoryRoot>
        </sourceControlProvider>
      </filtered>
    </sourceControls>
  </sourcecontrol>
  <!-- ... -->
</project>

      

+4


a source







All Articles