-
Notifications
You must be signed in to change notification settings - Fork 219
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In #388, we added the problem statement for [TEP-0059: Skip Guarded Task Only](https://github.com/tektoncd/community/blob/main/teps/0059-skip-guarded-task-only.md) that addresses skipping strategies to give users the flexibility to skip a single guarded `Task` only and unblock execution of its dependent `Tasks`. In this change, we add the proposal and discuss alternatives for solving that problem. Today, we support specifying a list of `WhenExpressions` through the `when` field as such: ```yaml when: - input: 'foo' operator: in values: [ 'bar' ] ``` We propose changing the `when` field from a list to a dictionary and adding `scope` and `expressions` fields under the `when` field. - The `scope` field would be used to specify whether the `WhenExpressions` guard the `Task` only or the whole `Branch`. - The `expressions` field would be used to specify the list of `WhenExpressions`, each of which has `input`, `operator` and `values` fields. ```yaml when: scope: Task / Branch expressions: - input: 'foo' operator: in values: [ 'bar' ] ```
- Loading branch information
Showing
1 changed file
with
300 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters