Updated on 2024-11-25 GMT+08:00

CodeArts Build

The CodeArts Build connector interconnects with Huawei Cloud CodeArts Build.

CodeArts Build provides an easy-to-use platform that supports multi-language parallel builds on the cloud. It helps enterprises improve build efficiency while lowering overall costs even at large scale.

Prerequisites

You have subscribed to CodeArts Build.

Creating a CodeArts Build Connection

  1. Log in to the new ROMA Connect console.
  2. In the navigation pane on the left, choose Connector. On the page displayed, click New Connection.
  3. Select the CodeArts Build connector.
  4. In the dialog box displayed, configure the connector and click OK.

Parameter

Description

Name

Enter the connector instance name.

Description

Enter the description of the connector to identify it.

Access Key

Access key ID (AK) of the current account. Obtain the AK by referring to Access Keys. If an AK/SK pair has been generated, find the downloaded AK/SK file (such as credentials.csv).

Secret Access Key

Secret access key (SK) of the current account. Obtain the SK by referring to Access Keys. If an AK/SK pair has been generated, find the downloaded AK/SK file (such as credentials.csv).

Action

  • Querying the latest successful build of a specified repository
  • Querying details of a build record
  • Executing a build task
  • Querying success rate of a build task in a specified period
  • Checking task running status
  • Viewing the build task list in a project
  • Downloading Keystore files
  • Viewing the build history of a task based on start time and end time
  • Viewing the build history of build tasks

Configuring Parameters

Table 1 Querying the latest successful build of a specified repository

Parameter

Description

project_id

CodeArts project ID.

region_id

Region ID.

repository_name

Name of the code repository.

Table 2 Querying details of a build record

Parameter

Description

job_id

Build task ID, which contains the 32 digits and letters at the end of the browser URL when the build task is edited.

build_number

Build number of the task, which starts from 1 and increases by 1 for each build.

region_id

Region ID.

Table 3 Executing a build task

Parameter

Description

region_id

Region ID.

body

Enter the request body.

Table 4 Querying success rate of a build task in a specified period

Parameter

Description

job_id

Build task ID, which contains the 32 digits and letters at the end of the browser URL when the build task is edited.

region_id

Region ID.

start_time

Start time, which is in the YYYY-MM-DD format.

end_time

End time, which is in the YYYY-MM-DD format.

Table 5 Checking task running status

Parameter

Description

job_id

Build task ID, which contains the 32 digits and letters at the end of the browser URL when the build task is edited.

region_id

Region ID.

Table 6 Viewing the build task list in a project

Parameter

Description

project_id

CodeArts project ID.

region_id

Region ID.

page_index

Page number, indicating that the query starts from this page. The value is no less than 0.

page_size

Number of items displayed on each page. The value is no more than 100.

Table 7 Downloading Keystore files

Parameter

Description

region_id

Region ID.

file_name

Name of the file to download.

domain_id

Tenant ID, which is a string of 32 digits and lowercase letters.

Table 8 Viewing the build history of a task based on start time and end time

Parameter

Description

job_id

Build task ID, which contains the 32 digits and letters at the end of the browser URL when the build task is edited.

region_id

Region ID.

offset

Page number, indicating that the query starts from this page. The value is no less than 0.

limit

Number of items displayed on each page. The value is no more than 100.

start_time

Start time, which is in the YYYY-MM-DD format. The time range cannot exceed 30 days.

end_time

End time, which is in the YYYY-MM-DD format. The time range cannot exceed 30 days.

Table 9 Viewing the build history of build tasks

Parameter

Description

job_id

Build task ID, which contains the 32 digits and letters at the end of the browser URL when the build task is edited.

region_id

Region ID.

offset

Page number, indicating that the query starts from this page. The value is no less than 0.

limit

Number of items displayed on each page. The value is no more than 100.

interval

The time interval from the current date. The value is no more than 30.