---
url: /reference/connector-options.md
---

# Repository Connector Options Reference (SVN, Git, Azure DevOps, etc.)

To create a project, Teamscale needs to be connected to your version
control system. To this end, it offers several different repository
connectors. We describe the options for each repository connector.

\[\[toc]]

## Shared Connector Options

Setting up the other connectors to source code repositories and issue
trackers is very similar to the Git connector setup.
Many connectors share general options such as a **polling interval** and therefore, we only describe
the options (if there are any) for the first connector that uses it. If
there are no additional options in a connector, we don't document the
connector separately.

### Common and Git-specific Connector Options

### Team Foundation Server (TFS)-specific Connector Options

### Subversion (SVN)-specific Connector Options

### File System-specific Connector Options

### Vote-Supporting Connector Options

Teamscale can cast merge request [votes](../../glossary/#voting)  on platforms that support it.
The connectors that implement this behavior are:

* Azure DevOps Git
* Bitbucket Cloud
* Bitbucket Data Center
* Gerrit
* Gitea
* GitHub
* GitLab
* SCM-Manager

The common options for these connectors are:

## Bitbucket Data Center

The Bitbucket Data Center connector can access Git repositories of Bitbucket Data Center instances and can additionally
vote on pull requests.

:::tip
For a visualization of how Teamscale votes in Bitbucket Data Center, see
our [how-to guide](../../howto/connecting-version-control-system/bitbucket/).
:::

### Bitbucket Data Center Options

## Gerrit

The Gerrit connector can access Gerrit-managed Git repositories, and can additionally
vote on changes.

### Gerrit Connector Options

## GitHub

The GitHub connector can access Git repositories of GitHub instances and can additionally vote on pull requests.

:::tip
For a visualization of how Teamscale votes in GitHub, see
our [how-to guide](../../howto/connecting-version-control-system/github/).
:::

### GitHub Options

## GitLab

The GitLab connector can access Git repositories of GitLab instances and can additionally annotate merge requests.

:::tip
For a visualization of how Teamscale votes in GitLab, see
our [how-to guide](../../howto/connecting-version-control-system/gitlab/).
:::

### GitLab Options

## SAP ABAP

Teamscale stores the ABAP code it retrieves from an SAP system in an internal Git repository, one per SAP system.
The ABAP connector selects an [SAP system connection](../admin-settings/sap-system-connections/) from a dropdown list instead of asking for repository coordinates, and omits options that do not apply — ABAP Git repositories do not use branching, so there is no *Default branch* option.
See [Creating an ABAP Project in Teamscale](../../howto/sap-integration/teamscale-abap-project/) for the how-to.

The settings to include and exclude source code are specified using *Included file names* and *Excluded file names*, which match the file paths within that internal Git repository.
A path consists of the full package hierarchy and source code files suffixed with `.abap`.
Slashes in custom namespaces are replaced by an exclamation mark, so `/XYZ/` becomes `!XYZ!`.

### ABAP Code File Include/Exclude Patterns

### ABAP Dictionary File Patterns

Besides the ABAP source code in `*.abap` files, textual representations of objects defined in the *ABAP Dictionary (DDIC)* are retrieved as `*.abap_ddic` files.
These path patterns can be combined with package specifications, just like the ABAP source code patterns, and must be added to the same include/exclude lists.

## Subversion (SVN) Branch Analysis

Subversion by itself does not support *real* branches, but rather uses
its *cheap copy* operation and folder naming conventions for managing
logical branches. For Teamscale to recognize a folder as a branch, it
must either be a top-level folder *trunk* or a folder below the
*branches directory* configured for the repository(defaults to
*branches*). Then enable branch support and configure the URL of the SVN
connector to point to the project folder, i.e., the one containing
*trunk* and the configured *branches directory*. If the SVN repository
in question is using [the standard SVN layout](http://svnbook.red-bean.com/en/1.7/svn.branchmerge.using.html),
then you can simply use the *branches directory* option's default.

Note that Teamscale assumes all folders directly within the *branches
directory* to be actual branches. Using further folder hierarchies to
organize your branches is currently not supported. More specifically, a
branch name may never contain a slash. Also, as Teamscale analyzes
your history, even branches that have been deleted from the *branches*
folder will be found and potentially be analyzed, as they are part of
the recorded history. If you want to prevent this, either set a *start
date* after the time the branch was deleted or exclude the corresponding
branches using the *branch exclude patterns*.

## Subversion Authentication Problems

In case you are running into the problem that the SVN connector validates
successfully, but the `SVNChangeRetriever` then runs into an
`SVNAuthenticationException` with a `403 Forbidden` message, you can try
to add the following to the entry `JVM_EXTRA_ARGS` in the file
`$TEAMSCALE_HOME/config/jvm.properties`:

```properties
-Dcom.teamscale.enable-svn-thorough-auth-check-support=true
```

If it is enabled, Teamscale will do some additional authentication checks,
to find the folder closest to the repository root it can access. Because this
is slower than the default, it is disabled by default.

## Azure DevOps Team Foundation Version Control Credentials (formerly called Team Foundation Server (TFS))

When connecting to Azure DevOps TFVC via a repository connector,
you may use either the account credentials of a domain user or a
personal access token (if these are enabled in your Azure DevOps).

When configuring an account credential for an access token, enter the Azure DevOps access token in the *Access Token*
field.
The *Username* is optional in this case.
By convention, you may use the name of the access token.

#### Azure DevOps Boards (formerly called Team Foundation Server Work Items)

When connecting to an Azure DevOps Server via an issue connector,
please verify whether the *Basic Authentication* option is enabled in
your IIS or not. Depending on this option, you may need to use different
credentials than you used for your repository connector when connecting
to the Azure DevOps to retrieve work items.

##### With *Basic Authentication* enabled:

You must connect with the credentials (username and password) of an Azure DevOps
user account. Connecting with personal access tokens will not work. This
may either be a domain user or an Azure DevOps user with the necessary rights to
read work items.

##### With *Basic Authentication* disabled:

You must connect with a personal access token. Connecting with a user
account (username + password) will not work. Put the personal access
token in the *Password* field in the
Teamscale UI. Configuring a *Username* in
Teamscale is optional in this case. By convention, you may use the name
of the TFS access token.

## Artifactory Connector Options

Artifactory is a tool hosting a repository where build artifacts can be
stored. Examples of such artifacts are generated code or findings
generated by some external tool. It is good practice to store these in a
versioned manner with a reference to the revision used to generate the
given artifacts. This can be easily achieved by encoding the revision in
the path of the artifact, e.g., `/app/component/trunk/rev1234/artifact.zip`.

Teamscale can extract such metadata from the artifact path and use it
to link revisions in Artifactory to revisions in source-code
repositories.

### Artifactory Connector Options

To extract metadata from paths, Teamscale offers a variety of
extraction options that can be configured in the Artifactory Repository
Connector. These options are defined by regular expressions with exactly
one capturing group. The regular expression will be applied to the
complete path of the imported artifact, and the content of the capturing
group will be interpreted as the data to be extracted.

If the Artifactory file layout is not yet fixed, it may prove helpful to
keep ease of extraction in mind when deciding on a structure. For
example, paths should include the names of the fields Teamscale should
extract. This allows simpler regular expressions than when having to
derive the fields from the repository layout, especially if that layout
is highly diverse across different projects.

Consequently, the path `/app/component/branch_trunk/rev_1234/artifact.zip` is easier to parse than the path
`/app/component/trunk/1234/artifact.zip`.
However, Teamscale is flexible enough to accommodate all repository structures, even when the layout is already
established.

Teamscale assumes that uploads to Artifactory are typically triggered
by VCS commits. Some configuration options only make sense in
this light, e.g., "Timestamp Interpretation". This option allows
relating an Artifactory upload to some previous repository commit.

#### Artifactory Connector Configuration

## S3 Connector

The S3 connector enables Teamscale to connect to [Amazon S3](https://aws.amazon.com/s3/) or any object storage server
with an API compatible with Amazon S3 cloud storage (e.g. [MinIO](https://min.io/)).
The connector then fetches the data from the object storage server, whether it's generated code or data generated by
some external tool (e.g. findings, code coverage, etc.).
We recommend you store the objects in archives.
The path to the archive must include the revision used to generate the given artifacts, as well as the branch to which
they belong, e.g., `app/component/branch_name/rev_1234/artifact.zip`

Teamscale can extract such metadata from the object key and use it to link revisions from the object storage server to
revisions in source-code repositories.

### S3 Connector Account Credentials

When connecting to Amazon S3 or any S3-compatible server via the S3 connector, you must use the account credentials of a
user's **service account**.

#### Required User Permissions

The user, whose service account will be used, must have the following **action permissions**:

* s3:GetObject
* s3:ListBucket

Below is a sample for an IAM policy specifically created for the Teamscale technical user with only the required
permissions.

```json
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": [
        "s3:GetObject",
        "s3:ListBucket"
      ],
      "Resource": [
        "arn:aws:s3:::*"
      ]
    }
  ]
}
```

#### Account Credentials

When using http(s)-based path-style links, the used account's fields should be filled out as follows:

* ***URL***: The base URL of the object storage server (e.g., `http(s)://<hostname>[:port]/<bucket>[/key]`).
* ***Access Key***: The service account's **access key**.
* ***Secret Key***: The service account's **secret key**.

When using http(s)-based virtual-host-style links, the used account's fields should be filled out as follows:

* ***URL***: The base URL of the object storage server (e.g., `http(s)://<bucket>.<hostname>[:port][/key]`).
* ***Access Key***: The service account's **access key**.
* ***Secret Key***: The service account's **secret key**.

When using s3-style links, the used account's fields should be filled out as follows:

* ***URL***: The base URL of the object storage server (e.g., `s3://<bucket>[/key]`).
  This will automatically switch to using the [AWS CLI](https://aws.amazon.com/cli/).
  In this configuration style, the access key and secret key are taken from the host machine.
  The ***Secret Key*** and ***Access Key*** in the Teamscale configuration will be ignored and can therefore be left
  empty.

:::warning Relationship between bucket configuration and URI
The ***Bucket*** field in the connector configuration must be filled and defines the bucket used by Teamscale.
The \<bucket> in the URI must match the name given in the ***Bucket*** field.
:::

#### Credentials Process

An AWS credentials
process
may be used instead of the account's username and password.
To enable this functionality, you have to set the command via
the [JVM property](../../reference/administration-ts-installation/#jvm-settings-jvm-properties)
`-Dcom.teamscale.s3.credentials-process-command`.
The command should correspond to an executable file accessible by Teamscale that will provide the credentials in the
correct format when executed.
You may optionally specify multiple environment variables in
the [admin settings](../../reference/admin-settings/#admin-settings-reference) under
the "AWS Integration" section.
They will be added to the environment of the command.
For example, if the command is `credentials_process`, it will be executed as
`VAR1=VAL1 VAR2=VAL2 ... credentials_process`, where
`VAR1`, `VAR2`, *etc.*, are the environment variables and their corresponding values.
To avoid security risks such as potential command injection, environment variable keys and values are limited to letters
and digits,
i.e., a-z, A-Z, 0-9, as well as the characters '.' (dot), '-' (minus), and '\_' (underscore).
Finally, the option ["Use Credentials Process"](#s3-connector-configuration) must be enabled in the connector for the
credentials process to be used.

### S3 Connector Options

To extract metadata from objects, Teamscale offers a variety of extraction options that can be configured in the S3
Repository Connector.
These options are defined by regular expressions with exactly one capturing group and/or glob patterns.
The regular expression will be applied to the complete key of the imported object, and the content of the capturing
group will be interpreted as the data to be extracted.

If the bucket's layout is not yet fixed, it may prove helpful to keep ease of extraction in mind when deciding on a
structure.
For example, object keys should include the names of the fields Teamscale should extract.
This allows simpler regular expressions than when having to derive the fields from the bucket's layout, especially if
that layout is highly diverse across different projects.

Consequently, the path `/app/component/branch_trunk/rev_1234/artifact.zip` is easier to parse than the path
`/app/component/trunk/1234/artifact.zip`.
However, Teamscale is flexible enough to accommodate all bucket structures, even when the layout is already established.

Teamscale assumes that uploads to the S3 object storage server are typically triggered by VCS commits.
Some configuration options only make sense in this light, e.g., "Timestamp Interpretation".
This option allows relating an S3 object to some previous repository commit.

#### S3 Connector Configuration

## Issue Tracker Connector Options

### Options for all Issue Tracker Connectors

#### Jazz-specific Issue Tracker Connector Options

#### (App based) GitHub-specific Issue Tracker Connector Options

There is no project option for this issue tracker, since this connector is directly tied to a specific
repository.

![GitHub (App based) Server URL Selection Dropdown Menu](../figures/github-issue-server-url-selection-dropdown-menu.png)

#### Jira-specific Issue Tracker Connector Options

#### TFS Worker Item-specific Issue Tracker Connector Options

#### RTC/Jazz-specific Issue Tracker Connector Options

#### GitLab Issue Tracker Connector Options

#### Commit Message-based Issue Tracker Connector Options

## Jira Server Issue Update Option Details

The **Add to Jira issues** option allows to configure the type of
Teamscale analysis results **appended** to Jira issues as well as the
destination field(s) of Teamscale-generated data in matched issues.
The following analysis results can be appended to matched Jira issues:

* *Findings balance* suboption allows to update Jira issue(s) with
  finding badges that contain the counts of added/removed/changed code
  findings introduced by the respective issue(s).

* *Test Gap* suboption allows to update Jira issue(s) with the test
  gap ratio of the respective issue(s). The test gap ratio also includes
  changes from child issues in case the Jira issue acts as a parent for
  other issues.

Both suboptions are linked to the **Issue** perspective where all issue-related information can be viewed.

Additionally, it is possible to configure the field(s) of Jira issues that Teamscale-generated data should be appended
to:

* *Issue description* suboption allows to **append** Teamscale-generated data to issue description.

* *Custom fields* suboption allows to **write** Teamscale-generated data to specified custom fields.
  *This will overwrite any existing data in the field*.
  The custom fields have to be created by *Jira Administrator* and be of *Text Field (multi-line)* type.

![Jira Server Issue Update Configuration Menu](../figures/jira-issue-update-configuration-menu.png)

## Requirements Management Tool Connector Options

### Options for all Requirements Management Tool Connectors

### Jira-specific Requirements Management Tool Connector Options

### Polarion-specific Requirements Management Tool Connector Options

### RTC/Jazz-specific Requirements Management Tool Connector Options

### Azure-Devops-specific Requirements Management Tool Connector Options

### Codebeamer-specific Requirements Management Tool Connector Options

#### GitLab Issues as Requirement Management Tool
