Registering GitLab Data Source


To retrieve data from an external GitLab data source (such as for deploying algorithm models), you first need to configure the connection information for the GitLab data source.

Prerequisites


Before you begin, ensure the following:

  • Your account has been granted the required asset permissions, operation permissions, and menu group access. If not assigned, contact OU administrator.

  • You have obtained the detailed connection configuration of the data source, including the server IP address, port number, database name, access credentials, password, etc.

Procedure


  1. Log in to the EnOS Application Portal, and select Data > Data Source Registration from the left navigation bar.

  2. Click Add Data Source.

  3. On the Add Data Source page, complete the following configurations:

    Basic Information:

    • Data Source Type (Required): Select GITLAB.

    • Data Source Name (Required): Enter a name for the data source. The maximum length is 50 characters, and the name can consist of:

      • Letters

      • numbers

      • _ (underscore)

      • - (hyphen)

    • Data Source Description: Enter a description for the data source. The maximum length is 100 characters and supports internationalization (default, Chinese, English).


    Configuration Information:

    • Token (Required): Enter the Access Token for accessing GitLab repositories. Follow these steps to obtain an Access Token:

      • Log in to GitLab and click User in the top-right corner, then select Settings.

      • In the User Settings left navigation bar, select Access Tokens.

      • Enter a name for the Access token, select its expiration period, check the api, read_user, and read_repository permissions, then click Create personal access token.

      • Copy the generated Access Token from the Your New Personal Access Token field.

    • Git URL (Required): Enter URL of the Git project in the format: http://hostname:port/namespace.

  4. Click Test to verify the connectivity of the data source.

  5. After a successful test, click Confirm.

    • Connectivity is not validated during data source creation. A data source can still be created even if the connectivity test fails.

    • If the connectivity test fails five times consecutively, the account will be locked for 10 minutes.

Outcome


Once the data source is successfully registered, it will appear in the Data Source Registration list. Users can view basic information about all data sources within the OU, but only the creator can modify or delete their registered data sources. For more details, see Managing Data Source.