Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Scenarios and examples of repository rules can be found on the Repository Rules page.

 

I'm using a Server to Agent rule to put the repositories

...

'

...

contents in the agent's workspace but the repositories

...

'

...

contents aren't in the server workspace, how does that work?

When a build starts and the workspace is initially created on the server, the contents of that build's workspace contain no trace of any repositories. Instead, the server will process the repository rules and determine which repositories need to be synced to the agent. The agent will then take note of those repositories and update its repository cache. The agent then runs the repository rules against the repository in its repository cache. This eliminates the need for the server to deal with any copying of repositories. It also has the advantage of making subsequent builds a lot quicker. Instead of having to copy the repository from the server to the agent each build, the agent simply does a local copy from its repository cache into the workspace directory. 

...