if conditional

The if key on a job or step that runs it only when an expression is true.

In more detail

Functions such as always(), success() and failure() look at earlier results, so if: always() uploads a test report even after the tests failed. A matrix property can be tested the same way, as in if: matrix.coverage.

Example

if: always()

Related terms

Taught in

References

Certification courses