Git
Repository URL
...
ssh://host.xz[:port]/path/to/repo.git/
git://host.xz[:port]/path/to/repo.git/
http[s]://host.xz[:port]/path/to/repo.git/
ftp[s]://host.xz[:port]/path/to/repo.git/
rsync://host.xz/path/to/repo.git/
/path/to/repo.git/
file:///path/to/repo.git/
Username
If your repository requires a username, enter it here.
Password
If your repository requires a password, enter it here.
Authentication Method
This is displayed only after a Repository URL starting with https//: (or http://) is entered.
Select one of the following authentication methods:
- Built-in credential helper (recommended): The specified username and password are passed securely to Git when requested by the credentials API.
- None: No username and password are passed to Git. If the repository requires credentials then Git will request them at a command line prompt and wait for a response. Only use this option if a credentials manager such as Git Credential Manager for Windows is installed and the required credentials are already stored under the profile of the user account running the Server service otherwise the Git repository may stall for several seconds before timing out.
- Embed username and password in URL: The username and password are passed as part of the Git repository URL. This option is insecure and not recommended. It is only available for only backwards compatibility.
Proxy
Select a Proxy type to open the Proxy tab page for entering proxy details
Recursive
Tick this to pick up submodules when fetching source files from the repository.
...
See Git Internals - The Refspec for further information
Use author name
Tick this to store the author name against the changeset instead of the committer name.
Allow insecure certificate
Tick this if your repository uses an insecure or self-signed certificate
Using
The Using drop down is populated with any property collector whose namespace matches the pattern defined by the Git plugin. The pattern for this action is ^git\..*
If you create a property collector for this action, make sure you select the Path Finder PlugIn type and give it a name that will match the pattern above in blue. Example names listed here, search the table's Plugin column for "Git".
For more in-depth explanations on property collectors see Property Collectors.
Alternatively, you can select the Custom option from the Using drop down list and specify a path in the resulting input field that will be displayed. Please read Why it's a good idea to use a property collector before using this option.
Credentials
Username
If your repository requires a username, enter it here.
Password
If your repository requires a password or access token, enter it here. Note that GitHub requires a personal access token rather than a password. Ensure that you give your access token access permissions to your repository.
Proxy
If your company uses a proxy to access external networks, enter the relevant Hostname, Port, Username and Password here.
Branches
Branches To Monitor
...
Enter a non-zero value to hide old branches. Any branches which have no commits or builds within the specified number days will be excluded from the branch list on the Start Build and Trigger dialogs.
Tags
Tag Changes
Choose how to deal with tagged commits. You can choose to Ignore tags completely, Detect tags and show then next to changesets, or Detect and list as new changeset . The later option will create a new changeset in the database representing that a tag change (new tag, tag deletion or modification) was made. This new changeset can be used to trigger a build.
...
Normally only the latest changeset on each branch is loaded into the database when the repository is initialised. When this option is ticked earlier changesets which are the source of a tag are also loaded during initialisation. All tags are then available to be selected when starting a build.
Push Repository
...
URL
The URL for pushing tag changes (made by the Tag Repository Changeset build event handler) to the remote Git repository.
...
Push Password
An alternative password (or personal access token) to use when pushing tag changes to the remote Git repository. Leave Leave blank to use the main repository Password.
Scripts
Post-Checkout Script
...
Run as Git hook
Tick to copy the script file to the Git hooks folder to be triggered by the Git post-checkout event. Leave this cleared to run the script directly after untracked files are cleaned up.
A script running as a Git post-checkout hook has access to the arguments passed in by Git, including refs of previous and new HEAD and flag indicating checkout type. Note however that the working folder may contain untracked files, which are cleaned up after checkout. You can specify paths to exclude from the clean up in the Post Checkout Output Paths field. This field accepts Ant patterns to specify multiple file paths.
Run shell login files
Tick to use the --login shell command option to execute login shell startup files when running the script directly.
Restricted shell
Tick to use the --restricted shell command option to start a restricted shell environment when running the script directly.
Use POSIX standard
Tick to use the --posix shell command option to change the behaviour to match the POSIX standard when running the script directly.
Script Arguments
Enter any arguments to wish to pass to the post-checkout script here.
Options
Use author name
Use the author name instead of committer name as changeset user.
Authentication prompt timeout (in seconds)
How long to wait for Git commands which require authentication to respond with output timeout. This includes clone, fetch and push operations and prevents the git command line hanging if authentication is not set up correctly.
Allow insecure certificates
Allow insecure (such as self-signed) SSL certificates.
Write changeset details to file
Tick to write changeset details to the file "_CI_ChangesetDetails.xml" after checking out each changeset.
Filtering
These filtering operations are applied when new changesets are detected during repository polling. Note that they are not applied retroactively to previously detected changesets unless the repository is reset.
Path Filtering
Specify patterns to match folders or files to include and/or exclude from the repository cache. Type each pattern on a new line using the ANT pattern format or as regular expressions prefixed with 're:'.
Changeset Exclude Patterns
Specify patterns to match changesets to exclude. The changeset will only be excluded if all modified files match one or more of the patterns. Type each pattern on a new line using the ANT pattern format.
Downtime
Specify schedules for times when your repository are unavailable. During these times Continua CI will not poll your repository for changes.