Annotating your builds and pipelines with dynamic metadata
Post-step operations are a set of optional predefined processes that can be configured on any step. These operations will be executed once the step has completed. The post-step operations allow you to annotate your builds, images and pipelines with extra metadata.
Result Aware Post-Step Operations
You may execute post-step operations conditionally, based on the outcome of the step itself.
To execute operations only when the step has completed successfully, use
To execute operations only when the step has failed, use
Result Agnostic Post-Step Operations
You may execute post-step operations regardless of the outcome of the step itself.
To execute operations regardless of the result, use
Available Post-Step Operations
Marking a Docker image with the results of unit tests:
Running other steps
Post operations are only for metadata. If you want to run a step when another step fails or succeeds you need to use conditional execution of steps and the
In this example the step
print_error_message will only run if step
run_tests has failed.
See also advanced workflows.