Skip to content

SCMExtensionConfigProperties

Name Environment Description Default value Notes
ontrack.config.extension.scm.catalog.enabled ONTRACK_CONFIG_EXTENSION_SCM_CATALOG_ENABLED Enabling the SCM catalog false
ontrack.config.extension.scm.mock.enabled ONTRACK_CONFIG_EXTENSION_SCM_MOCK_ENABLED Enables the mock SCM, which keeps repositories, branches, commits and issues in memory instead of talking to a real SCM. Disabled by default; always enabled in the dev profile. Enable it only on demonstration or test instances - never on an instance tracking real deliveries, where it would let a project claim an SCM that answers with whatever anyone posted to it. Its data lives in the memory of each backend, and neither survives a restart nor is shared between replicas, unless persistent is set. false
ontrack.config.extension.scm.mock.git.clone-url ONTRACK_CONFIG_EXTENSION_SCM_MOCK_GIT_CLONE_URL Base URL handed out in the clone access of the mock SCM, as <clone-url>/<repository>.git. It may differ from push-url when the Git server is reached differently by the jobs than by Yontrack. Blank by default.
ontrack.config.extension.scm.mock.git.password ONTRACK_CONFIG_EXTENSION_SCM_MOCK_GIT_PASSWORD Password for the Git server, for the push and in the clone access.
ontrack.config.extension.scm.mock.git.push-url ONTRACK_CONFIG_EXTENSION_SCM_MOCK_GIT_PUSH_URL Base URL Yontrack pushes the mock repositories to, as <push-url>/<repository>.git. The server creates the repository on the first push. Blank by default: the mock SCM then has no clone access. Needs clone-url too.
ontrack.config.extension.scm.mock.git.username ONTRACK_CONFIG_EXTENSION_SCM_MOCK_GIT_USERNAME Username for the Git server, for the push and in the clone access. Blank for an anonymous access.
ontrack.config.extension.scm.mock.persistent ONTRACK_CONFIG_EXTENSION_SCM_MOCK_PERSISTENT Keeps the mock SCM's repositories in the database, and only there, so that its commits, issues, files and pull requests survive a restart and are the same for every backend replica. Required with several replicas. Disabled by default: tests create their mock data inside the test and would only pay for the writes. Set it on a long-lived instance configured with the mock SCM - a demonstration instance, or a development stack whose backend is restarted often - where losing the data means the change log of an already-seeded project fails until the next reset. What it writes is an implementation detail of the mock SCM and not a storage format to depend on. Has no effect unless enabled is set. false
ontrack.config.extension.scm.search.schedule ONTRACK_CONFIG_EXTENSION_SCM_SEARCH_SCHEDULE Interval between two incremental indexations of the SCM commits for the search, in hours. Each one scans only the commits after the last indexed one of each project; a full indexation of all the commits runs weekly. PT1H
ontrack.config.extension.scm.search.scheduled ONTRACK_CONFIG_EXTENSION_SCM_SEARCH_SCHEDULED Enabling the scheduled indexation of the SCM commits for the search, incremental and weekly. When disabled, the commits are indexed only on demand. true