The YAML schema for Jenkins native step is as follows:
An alphanumeric string (underscores are permitted) that identifies the step.
Jenkins for this step type.
Specifies all configuration selections for the step's execution environment. This step inherits the Bash step configuration tags, with these pertinent tags:
Description of usage
|Must specify a named Jenkins Integration.||Required|
In addition, these tags can be defined to support the step's native operation:
Tags derived from Bash
All native steps derive from the Bash step. This means that all steps share the same base set of tags from Bash, while native steps have their own additional tags as well that support the step's particular function. So it's important to be familiar with the Bash step definition, since it's the core of the definition of all other steps.
Description of usage
|The name of the Jenkins job/pipeline||Required|
|Required field when the Jenkins Job is configured for multibranch. This tells pipelines which branch to execute.||Optional|
|Assigns any build parameters and their strings in key:value format. These parameters will be passed to the Jenkins job.||Optional|
Execution takes place within the Jenkins job only. This section is not supported for this type of step.
The following examples show how to configure a Jenkins step for a few different Jenkins jobs.
Freestyle Jenkins Project or Pipeline
A Jenkins step for a freestyle Jenkins project or Pipeline. Note that this example will not work with Jenkins Multibranch Pipelines, see the next example for those.
This example uses
timeoutSeconds Bash tag. For more information about other Bash tags that can be used, see Bash.
Jenkins Multibranch Pipeline
A Jenkins step for a Jenkins Multibranch Pipeline.
Trigger Jenkins Jobs using an Input Image Resource
A Jenkins step providing an image name and tag and run number as build parameters to trigger Jenkins jobs using an input Image resource.
Two Jenkins Jobs using Priority Tag
Two Jenkins jobs that use the
Priority Bash tag. For more information about other Bash tags that can be used, see Bash.