Using code file as a job step

By using the Job as Code plug-in, you can configure a job step as a JSON or YAML file.

  1. Install the Job as Code plug-in.
  2. Select the job to add the step to, and then add a step.
    See Adding, copying, and arranging job steps for information about adding a step.
  3. In the Step Type window, expand Job as Code and click Configure Job as Code.
  4. Enter the properties for the step.
    The following are required properties.
    Name
    The name of the JSON or YAML file.
    Job as Code File Path
    The location of the JSON or YAML file.
  5. Click Save.