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:
Log in to the Salt Master node.
In the classes/cluster/<CLUSTER_NAME>/cicd/control/leader.yml
file,
add the following class:
- system.jenkins.client.job.validate
Apply the jenkins.client.job state:
salt 'cid01*' state.apply jenkins.client.job
To schedule a recurring build for a job:
Log in to the Salt Master node.
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.
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.