You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 18 Next »

Options

Todo

Rules

There are three types of rules in Continua:

Workspace Rules

Workspace rules allow you to control which files in the work space are synced or not synced between the server and the agent. Rules are split into include rules and exclude rules:

Include Rules

Include rules follow the simple syntax: <server_pattern> <operator> <agent_pattern>

The operator specifies the direction of the rule and the action to take when moving the file. The table below lists the operators and their behavior:

OperatorDirectionBehavior 
>Server to AgentMatch files on the server using the server_pattern and copy them to the destination specified by the agent_pattern. Preserves paths. 
->Server to AgentMatch files on the server using the server_pattern and copy them to the destination specified by the agent_pattern. Doesn't preserve paths. 
>>Server to AgentMatch files on the server using the server_pattern and copy them to the destination specified by the agent_pattern. Makes sure the destination directory is empty. 
<Agent to ServerMatch files on the agent using the agent_pattern and copy them to the destination specified by the server_pattern. Preserves paths. 
<-Agent to ServerMatch files on the agent using the agent_pattern and copy them to the destination specified by the server_pattern. Doesn't preserve paths. 
<<Agent to ServerMatch files on the agent using the agent_pattern and copy them to the destination specified by the server_pattern. Makes sure the destination directory is empty. 

The server pattern is always to the left of the operator and the agent pattern is always to the right. When using a Server to Agent operator, the server pattern is the source and the agent pattern is the destination. When using an Agent to Server pattern, the server pattern is the destination and the agent pattern is the source. The pattern that's the destination pattern isn't really a pattern, it's purely a directory in which the matched files from the source pattern are put. The pattern that is the source is what is used to find files in the source location, therefore this pattern must always contain a wildcard. The wild cards used are:

WildcardBehavior
**Matches anything in any directory
*Matches any files in the directory
?Matches a single character in a filename/directory

Scenarios and examples of workspace include rules can be found on the Workspace Rules page.

Exclude Rules

 

 

 

A workspace rule is a single line that describes the source location of a file or files you want to move, the destination you want them moved to and the behavior of the move. A rule contains 3 basic constructs, a server pattern, an operator and an agent pattern.

Output\binaries\*.exe > 

 

 

 

Note: Workspace rules are not used to move files from external locations into the workspace. For getting files into your workspace, use the Copy Action or Repository Rules

Repository Rules

 

 

 

Artifact Rules

 

Artifacts

Todo

Agent Requirements

Todo

 

  • No labels