Validating an External Connection

Validate the external connection you created to check if the personal access token (PAT) is active or not. If the validation fails, then it implies that the PAT is deleted or has expired. However, even if the validation succeeds, the build might fail for reasons such as, the PAT is not authorized to access the selected repository.

Validation is not applicable for connection to GitLab server and Bitbucket server.

For accessing DevOps using the Oracle Cloud Console, REST API, and CLI, see Accessing DevOps.

    1. Open the navigation menu and click Developer Services. Under DevOps, click Projects.
    2. Select a project and from the left-side menu, click External Connections.
    3. Select an external connection that you want to validate and click Validate Connection.
      If the validation is successful, then a success message is displayed. Else, a failure message is displayed. If the validation fails, you must generate a PAT and store your PAT securely in an OCI vault. You can then update the vault secret by editing the connection details.
  • To validate an external connection, run the validate command:

    oci devops connection validate --connection-id

    To get all the commands for connection:

    oci devops connection -h
  • To validate an external connection, use the ValidateConnection operation.