Enable CVP pipelines in the deployment model

Enable CVP pipelines in the deployment modelΒΆ

Cloud verification pipelines are included in the MCP DriveTrain by default. If your deployment does not contain CVP pipelines, you can enable the pipelines in your Reclass model as described in this section. You can also schedule a recurring build job for CVP pipelines as required.

To enable CVP pipelines:

  1. Log in to the Salt Master node.

  2. In the classes/cluster/<CLUSTER_NAME>/cicd/control/leader.yml file, add the following class:

    - system.jenkins.client.job.validate
    
  3. Apply the jenkins.client.job state:

    salt 'cid01*' state.apply jenkins.client.job
    

To schedule a recurring build for a job:

  1. Log in to the Salt Master node.

  2. Modify the classes/cluster/<CLUSTER_NAME>/cicd/control/leader.yml file as required. For example:

    jenkins:
      client:
        job:
          cvp-sanity:
            trigger:
              timer:
                spec: 'H 8 * * *'
    

    Note

    The spec field follows the cron syntax. For more details, see: TimerTrigger.

  3. Apply the jenkins.client.job state for the cid01* node:

    salt 'cid01*' state.apply jenkins.client.job
    

Applying the change in the example above schedules the cvp-sanity job execution to 8 am UTC every day.