Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions content/en/docs/core/condition.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,15 @@ Please look at each kind of resource (shell, file, etc.) for details about "how

{{< coreparameters "conditions" >}}

=== Using `failwhen`

The `failwhen` parameter allows you to **invert the result of a condition**:

* `failwhen: false` → Normal behavior: success is success, failure is failure. (Default behavior)
* `failwhen: true` → Inverted behavior: success is treated as failure, failure is treated as success.

This is particularly useful for testing or enforcing negative checks.

== Examples

* Example with only 1 source:
Expand Down