Enter the location of your git repository. This is the value of the repository parameter that gets passed to the clone command line option.
Examples:
http[s]://host.xz[:port]/path/to/repo.git/
ssh://host.xz[:port]/path/to/repo.git/
git://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/
Generally, the https and ssh protocols are preferred for remote repositories.
This is displayed only after a Repository URL starting with https//: (or http://) is entered.
Select one of the following authentication methods:
Select a Proxy type to open the Proxy tab page for entering proxy details
Tick this to pick up submodules when fetching source files from the repository.
Note: When using a remote repository, ensure that any local submodule commits are pushed before related commits on the local repository. If a main repository commit is picked up which is pointing tor a missing submodule commit, Continua will not be able to update the repository cache and a popup error message will be displayed against the changeset in the Configuration Changes view. You can resolve this error, after pushing the changes from the submodule, by clicking a link next to the error message.
Check this to specify refspecs for fetching remote branches . e,g
+refs/pull/*/merge:refs/remotes/origin/pr/*
See Git Internals - The Refspec for further information
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.
If your repository requires a username, enter it here.
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.
If your company uses a proxy to access external networks, enter the relevant Hostname, Port, Username and Password here.
There are 3 options to choose from when selecting which branch(es) to monitor.
Branch to use when not performing a feature branch build.
Tick to take case into account when matching the branch against the branch pattern.
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.
The path to a Bash shell script file to execute in the repository working folder directly after each changeset is checked out. This can be used to write Git status and commit details to a file which is then added to the changeset source files. Relative paths are rooted in the repository cache working folder.
Note that post-checkout scripts run on the server and can only be edited by administrators or users with a Manage Server-Side Scripts permission.
The execution of these scripts can also be locked down using the Continua.ExecuteRepositoryServerSideScripts app setting in the server configuration file. This can be set to either:
None: No repository scripts can be executed, Anywhere: Any repository scripts in any location will be executed, ExcludeRepositoryFolders: Repository scripts in any location outside of the repository cache folder will be executed, or CurrentRepositoryFoldersOnly : Only repository scripts inside the repository cache folder for the current repository will be executed
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.
Tick to use the --login shell command option to execute login shell startup files when running the script directly.
Tick to use the --restricted shell command option to start a restricted shell environment when running the script directly.
Tick to use the --posix shell command option to change the behaviour to match the POSIX standard when running the script directly.
Enter any arguments to wish to pass to the post-checkout script here.
Use the author name instead of committer name as changeset user.
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 (such as self-signed) SSL certificates.
Tick to write changeset details to the file "_CI_ChangesetDetails.xml" after checking out each changeset.
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.
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:'.
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.
Specify schedules for times when your repository are unavailable. During these times Continua CI will not poll your repository for changes.