Adding the Control repositories in Build

You can configure the Control repository in Build to build the source code of the projects that are maintained in the Control repository.

Before you begin

You must have completed the following tasks:

  • Ensured that a loop is created in DevOps Loop and you have access to Control and Build with appropriate permissions.
  • Ensured that a repository is created in Control.
  • Integrated the DevOps Control plugin in Build. Refer to the plugin documentation.

About this task

You can add the control repository in Build and you can obtain the trigger URL that can be added as the Target URL when you want to add the webhook in Control.

Procedure

  1. Log in to DevOps Loop.
    The Home page of the Initial TeamSpace is displayed, along with the My Loops and Solutions tabs.
  2. Click the Switch Teamspace icon to switch to the teamspace where you want to add a repository in Build.
  3. Navigate to Build.
    The Projects page is displayed.
  4. Click Settings > Repositories.
  5. Click Add New Repository.
    The Create Repository page is displayed.
  6. In the Source Plug-in drop down, select Control and then click Set.
  7. In the New Repository dialog, type a name for the repository in the Name field.
  8. Enter a description of the repository in the Description area.
  9. Type the URL for the Control repository in the Repository Base URL field.
  10. Type the Control user name in the Repository Username field.
  11. Type the personal access token for the account in the Password field.
  12. Optional: Enter a script or property lookup to obtain the password in Password Script field. This field is applicable only if the Repository Password field is blank.
  13. Optional: Select the Disable Build on Draft PR check box to skip the build trigger when you create a draft pull request in Control.
  14. Optional: Select the Use Author Email check box to use author email id while counting the committer license.

    The default value is the author's name.

  15. In the Teams field, you can see the System Team as the default team.
  16. Click Save.
    The repository is added and its details are displayed.
  17. Navigate to the Trigger tab and then click Create Trigger.
    The trigger is created and the details are displayed.
  18. Copy the trigger URL that is displayed in the Using GitHub or GitLab ServiceHook Webhooks field to use when configuring the webhook in Control.
  19. Perform the following steps to configure respository in the build process:
    1. Select the project from the Projects tab.
    2. Click the build process in the project.
    3. Navigate to Configuration tab.
    4. Click Create under Source Configuration section.
    5. Select the repository from the Repository dropdown.
    6. Type the Control repository URL in Path of the project field.
    7. Type the branch name in Source branch field.
    8. Click Save.
    You have configured the repository in the build processs.

Results

You have added the Control repository in Build and obtained the trigger URL to configure the webhook in Control.

What to do next

You can configure the web hook in Control to trigger the builds in Build. See Configuring a webhook in Control to trigger builds in Build.