Associating an SCM Repository to the Model Element

You can associate an SCM repository to the model element using Connected Software connectors or with a local configuration.

This task shows you how to:

Associate Using Connected Software Connectors

  1. In the Containment tree, right-click Model.
  2. In the shortcut menu, click Software Code Generation > Associate SCM Repository.

  3. In the Associate SCM Repository dialog box, choose the required repository.
  4. Click OK.

    The repository information is associated with the model by means of the «Connector» stereotype from the Embedded Software Profile:

    Repository InformationDescriptionExample
    repositoryHostRoot url of the targeted Git server https://gitlab.com)
    repositoryPathRelative path of the repository SJA/cubesat-control
    repositoryTokenAssociate the access token to the repository glpat-6_y_4y8hMDNDxWyaATi4

    Tip: To remove the association of the SCM repository, do the following:
    1. In the Containment tree, right-click Model.
    2. In the shortcut menu, click Software Code Generation > Associate SCM Repository.
    3. In the Associate SCM Repository dialog box, click the selected repository for which you want to remove the association.
    4. Click OK.

    The association is removed and the branches are detached from elements, if any.

Associate with a Local Configuration

If Connected Software is not used, it is still possible to attach a repository to the model element.

To do so, associate the «Connector» stereotype from Embedded Software Profile to the model element and configure it as follows in the tag values:

Repository InformationDescriptionExample
repositoryHostRoot url of the targeted Git server https://gitlab.com)
repositoryPathRelative path of the repository SJA/cubesat-control
repositoryTokenAssociate the access token to the repository glpat-6_y_4y8hMDNDxWyaATi4