Updated on 2024-01-22 GMT+08:00

Authorizing a Repository

You can create repository authorization so that build projects and application components can use the authorization information to access the software repository.

  1. Log in to ServiceStage, choose Continuous Delivery > Repository Authorization, and click Create Authorization.
  2. Configure authorization information by referring to the following table. Parameters marked with an asterisk (*) are mandatory.

    Table 1 Authorization information

    Parameter

    Description

    *Name

    Authorization name, which cannot be changed after being created.

    *Repository Type

    The following official repositories are supported:

    • GitHub (https://github.com)

      Authorization mode: OAuth or private token.

    • Gitee (https://gitee.com)

      Authorization mode: OAuth or private token.

    • Bitbucket (https://bitbucket.org)

      Authorization mode: OAuth or private Bitbucket.

    • GitLab (https://gitlab.com)

      Authorization mode: OAuth or private token.

      NOTE:

      ServiceStage allows you to access official and private GitLab source code repositories using private tokens.

      • Visit the official GitLab source code repository, obtain and enter a private token as prompted, and select Verify token (access the repository address from the public network).
      • Visit the private GitLab source code repository, enter the correct private GitLab source code repository address and private token as prompted. You do not need to select Verify token (access the repository address from the public network).

  3. Click Create.