Git configuration
Configuration of the connections to Git.
| Name | Environment | Description | Default value | Notes |
|---|---|---|---|---|
ontrack.config.extension.git.indexation.cleanup.cron |
ONTRACK_CONFIG_EXTENSION_GIT_INDEXATION_CLEANUP_CRON |
Cron for the job (empty to let it run manually) | ||
ontrack.config.extension.git.indexation.cleanup.enabled |
ONTRACK_CONFIG_EXTENSION_GIT_INDEXATION_CLEANUP_ENABLED |
Cleanup of Git indexations working directories: the clones of every replica are made again on their next use | true | |
ontrack.config.extension.git.indexation.timeout |
ONTRACK_CONFIG_EXTENSION_GIT_INDEXATION_TIMEOUT |
Timeout for the Git indexations (expressed by default in minutes) | PT30M | |
ontrack.config.extension.git.pull-requests.cache.duration |
ONTRACK_CONFIG_EXTENSION_GIT_PULL_REQUESTS_CACHE_DURATION |
Caching duration for pull requests. Time before a new connection is needed to get information about the PR from the SCM. |
PT6H | |
ontrack.config.extension.git.pull-requests.cache.enabled |
ONTRACK_CONFIG_EXTENSION_GIT_PULL_REQUESTS_CACHE_ENABLED |
Is the cache for pull requests enabled? | true | |
ontrack.config.extension.git.pull-requests.cleanup.deleting |
ONTRACK_CONFIG_EXTENSION_GIT_PULL_REQUESTS_CLEANUP_DELETING |
Days before deleting a PR branch after it's been closed or merged | 7 | |
ontrack.config.extension.git.pull-requests.cleanup.disabling |
ONTRACK_CONFIG_EXTENSION_GIT_PULL_REQUESTS_CLEANUP_DISABLING |
Days before disabling a PR branch after it's been closed or merged | 1 | |
ontrack.config.extension.git.pull-requests.cleanup.enabled |
ONTRACK_CONFIG_EXTENSION_GIT_PULL_REQUESTS_CLEANUP_ENABLED |
Auto cleanup of pull requests | true | |
ontrack.config.extension.git.pull-requests.enabled |
ONTRACK_CONFIG_EXTENSION_GIT_PULL_REQUESTS_ENABLED |
Is the support for pull requests enabled? | false | |
ontrack.config.extension.git.pull-requests.timeout |
ONTRACK_CONFIG_EXTENSION_GIT_PULL_REQUESTS_TIMEOUT |
Timeout before giving up on PR check | PT5S | |
ontrack.config.extension.git.remote.freshness |
ONTRACK_CONFIG_EXTENSION_GIT_REMOTE_FRESHNESS |
How old (by default in seconds) the last fetch of a local clone can be when it is read. An older clone is fetched first. Each replica has clones of its own, and fetches them when it reads them: the indexation job, run on one replica, does not refresh the others. Set to 1 minute by default. |
PT1M | |
ontrack.config.extension.git.remote.interval |
ONTRACK_CONFIG_EXTENSION_GIT_REMOTE_INTERVAL |
Interval between retries (by default in seconds and set to 30 seconds by default). |
PT30S | |
ontrack.config.extension.git.remote.max-no-remote |
ONTRACK_CONFIG_EXTENSION_GIT_REMOTE_MAX_NO_REMOTE |
Number of times we accept a "no remote" exception is thrown before deactivating the project in Ontrack. If <= 0, we always retry and never disable the project. |
3 | |
ontrack.config.extension.git.remote.operation-timeout |
ONTRACK_CONFIG_EXTENSION_GIT_REMOTE_OPERATION_TIMEOUT |
Timeout (by default in minutes) for a given remote operation to complete (like fetch & clone) Set to 10 minutes by default. |
PT10M | |
ontrack.config.extension.git.remote.retries |
ONTRACK_CONFIG_EXTENSION_GIT_REMOTE_RETRIES |
Number of retries to run when there is a timeout. Set to 0 for no retry. |
3 | |
ontrack.config.extension.git.remote.timeout |
ONTRACK_CONFIG_EXTENSION_GIT_REMOTE_TIMEOUT |
Timeout (by default in seconds) for a given remote operation to start (like fetch & clone). Leave 0 to use the default system value. Set to 60 seconds by default. This timeout is used for the connection part, not the total duration of the operation. |
PT1M |