Released: January 19, 2023
Note
Pipelines 1.32.2 requires Artifactory 7.49.5 and above.
Highlights
preRun and postRun Steps
In the pipelines
section in your pipelines YAML, you can now configure two optional steps:
preRun: This is an optional step. When configured, this step will always run at the beginning of a pipeline. This is useful when you want to run some checks at the beginning of a run.
postRun: This is an optional step. When configured, this step will always run at the end of a pipeline. This is useful when you want to run some checks at the end of a run.
Example
pipelines: - name: PreAndPostRuns preRun: execution: onExecute: - printenv - echo "Executing Pre Run" postRun: execution: onExecute: - printenv - echo "Executing Post Run" steps: - name: A type: Bash execution: onExecute: - printenv - echo "Step A" - name: B type: Bash configuration: inputSteps: - name: A execution: onExecute: - printenv - echo "Step B" - name: C type: Bash configuration: inputSteps: - name: A execution: onExecute: - printenv - echo "Step c" - echo "me ending" - ls -la
Like Pipelines Steps, preRun
and postRun
must include at least one execution command, such as onExecute
, onStart
, onSuccess
, onFailure
, or onComplete
. In addition, they can include input and output resources.For more information, see Defining a Pipeline.