An alphanumeric string (underscores are permitted) that identifies the step. The name should be chosen to accurately describe what the step does, e.g.
prov_test_env to represent a job that provisions a test environment. Names of steps must be unique within a pipeline.
Bash for this step type.
Specifies all optional configuration selections for the step's execution environment.
Description of usage
|Label that controls affinity to a Node. All the steps with the same affinityGroup will be executed on the same node. This will allow sharing state between the steps. An example is having the same affinityGroup for DockerBuild and DockerPush steps in a Pipeline so that Image being built in the DockerBuild step can be used to published in the DockerPush step||Optional|
Controls the priority of a step when there are parallel steps in a pipeline or multiple pipelines executing. Steps will a lower number will run before steps with higher numbers. For example, priority 10 will run before priority 100. The default priority is 9999.
|Time limit, in the number of seconds, for the step to complete. If the step does not complete in the given time limit, the step will be forced to a completion state of failed.||Optional|
|Assigns the node pool the step executes on. If node pool isn't specified, a step will execute on the default node pool. See here to learn more about node pool||Optional|
Specifies the step must execute in chronological order, to ensure receipt of all state updates from preceding steps.
A step with
|Assigns any environment variables and their strings in key:value format. All environment variables assigned within a step definition are active only for the scope of the execution of that step.||Optional|
|A collection of integrations that will be used by this step. Integrations can be used directly in step without a resource.||Optional|
|A collection of named steps whose completion will trigger execution of this step.||Optional|
A collection of named resources that will be used by this step as inputs.
By default, changes to these named resources will trigger execution of this step. This can be changed by declaring
A collection of named resources that will be generated or changed by this step.
|Specifies the runtime for the execution node.||Optional|
Declare sets of shell command sequences to perform for different execution phases:
|Tag||Description of usage||Required/Optional|
|Commands to execute in advance of ||Optional|
|Main commands to execute for the step||Optional|
|Commands to execute on successful completion of ||Optional|
|Commands to execute on failed completion of ||Optional|
|Commands to execute on any completion of ||Optional|
This is an example of how to use the Bash step to perform a build activity.