Updated on 2023-11-28 GMT+08:00

Using Git for Build

  • By default, CodeArts Build pulls code from CodeArts Repo. For code hosted on other services, you can use a Git connection to pull the code.
  • Git connections are authorized using AccessToken and are used only to pull code during build.

Procedure

  1. Create a build task and select Git for Code Source. If you use the Git connection for the first time, create an endpoint instance first.
  2. Click Create next to Endpoint.
  3. In the Create Service Endpoint dialog box displayed, configure parameters.

    Table 1 Parameters

    Parameter

    Description

    Service Endpoint Name

    Name of the service endpoint.

    Git Repository URL

    URL of the Git repository (HTTPS address).

    Username

    Username used for logging in to the Git repository.

    Password or Access Token

    Git repository password or access token.

  4. Click OK.