Skip to content

YAML Executor - Steps ​

Importing YAML configuration file into DevOps Velocity ​

Import the YAML configuration file into DevOps Velocity by using any one of the following methods:

Method 1: Using GitHub plug-in ​

Integrate DevOps Velocity with a GitHub repository that contains the ucv.yml file to import the YAML configuration file into DevOps Velocity.

Perform the following steps to import the YAML configuration file using GitHub plug-in:

  1. Log in to DevOps Velocity.

  2. Click Settings>Integrations.

  3. In the Installed tab, click Add Integration for the installed GitHub plug-in.
    Note: If the GitHub plug-in is not installed, go to Available tab and click Install for GitHub Plug-in.

    images/1.png

  4. Enter the details in the required fields to add GitHub integration.

    images/2.png

  5. Click Add to save the details and enable the integration.

    The YAML configuration file from the GitHub repository is automatically synced to DevOps Velocity and displayed under Settings>External config pipeline.

Method 2: Using user interface ​

You can import the YAML configuration file into DevOps Velocity using user interface if it is not hosted in a GitHub repository.

Perform the following steps to add YAML configuration file using user interface:

  1. Log in to DevOps Velocity.

  2. Click Settings>External config pipeline.

  3. Click Download sample yaml to download the sample YAML file.

  4. Edit the sample file with the actual values of your configuration.

  5. Click Add new config file.

    images/3.png Add New Config dialog opens.

  6. Click Choose file to select the edited file.

    images/4.png

  7. Click Confirm to upload the file.

    images/5.png

    The uploaded YAML configuration file is displayed in the list.

    images/6.png

  8. To edit the existing YAML configuration file, perform the following steps:

    1. Click overflow menu of the YAML configuration file and then click Edit.

      images/7.png The The existing YAML configuration file will download.

    2. The Edit the downloaded YAML configuration file.

    3. Click overflow menu of the YAML configuration file which you have edited and then click Update. Update config dialog opens.

    4. Click Choose file to select the edited file.

      images/8.png

    5. Click Confirm to upload the file.

      images/9.png
      The updated YAML configuration file is displayed in the list.

Applying YAML configuration file ​

Once you have the YAML configuration file in DevOps Velocity, perform the following steps to apply the configuration:

  1. Log in to DevOps Velocity.

  2. Click Settings>External config pipeline.

  3. Choose the required YAML configuration file in the list and click right angle bracket to preview the configuration details.

    images/10.png

  4. Click Apply for the required YAML configuration file.

  5. Click overflow menu for the required YAML configuration file and then click View Logs to view the logs of the applied YAML configuration file.

    images/11.png

YAML configuration file properties ​

The YAML configuration file is used to define configuration settings for automating the initial setup process for integrating various CI/CD tools into DevOps Velocity.

YAML File Structure ​

The following table describe the properties used to define the configuration in the YAML file.

Property nameTypeDescriptionRequired
versionStringThe version number of YAML file.Yes
integrationsArrayList of integration configurations.Yes

Integrations ​

The following table describe the properties that you must define under integrations:

Property nameTypeDescriptionRequired
typeStringType or category of the CI/CD tool.Yes
attributesObjectAdditional attributes specific to the integration.Yes
configsObjectConfiguration object for the integration.Yes
Configuration Object ​

The following table describe the properties that you must define under configs :

Property nameTypeDescriptionRequired
nameStringName of the configuration.Yes
loggingLevelStringLogging level for the integration.Yes
deltaTimeStringOptional: Time difference for the integration.Yes

For additional configuration properties depending on integration type, navigate to respective plug-in and look for general configuration properties section for more details.

Direct synchronization properties ​

The following table describes the properties used to enable direct synchronization during YAML execution.

Property nameTypeDescriptionRequired
directSyncBooleanEnables direct synchronization during YAML execution.No
applicationidsArrayList of application IDs used to retrieve and synchronize associated resources from other plug-in.Yes, when directSync is true

Note: Currently, directSync functionality is supported only for devops deploy plug-in.

When directSync is set to true, the YAML Executor validates resource existence in velocity before requesting data from the devops deploy plug-in. The applicationids property is used to synchronize only the resources associated with the specified applications.

Sample YAML configuration file ​

Following is the sample YAML configuration file with existing integration.

version: 0.0.1
integrations:
  - tenant_id: 12345-12345
    name: Valuestream 1
    attributes:
      appEnvOrder:
        - DEV
        - QA
        - PROD
      directSync: true
      auto-config: true
      integrationId: 12345-12345
      team: Dev Team
      applications:
        - TL5
      applicationids:
        - 12345-12345
    type: ucv-ext-ucd

Replace the property values in the sample file with the actual values specific to your configuration.

Customizing YAML configuration file ​

Perform the following steps to customize the YAML configuration file for your required integrations:

  1. Open the YAML configuration file in a text editor.
  2. Update version property with the appropriate version number.
  3. Under integrations property, add or remove any property as required.
  4. For each integration, add type, attributes, and configs property. name is optional if we want to overwrite valuestream name.
  5. In valuestream, To filter pipeline based on application add applications and teams to map value stream against the team.
  6. Under configs property, you must add the required properties based on the integration type. if integrationId is specified then configs is optional.
  7. To order the environment while syncing, use the appEnvOrder property.
  8. Set the auto-config attribute to true for enabling automatic setup of pipeline applications processes and environments after creating a new integration.
  9. Save the YAML configuration file.