Replies: 1 comment
-
The flag default value was switched as part of release v0.33.x |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello Tekton Friends!
This discussion is about changes to
when
expressions in Tekton Pipelines 0.27.We are migrating to using
when
expressions to guard aTask
only. For further details, read the proposal in TEP-0059: Skipping Strategies.Set
scope-when-expressions-to-task
field in feature flags to"true"
enable the new functionality.Guard a
Task
onlyWhen guarding a
Task
only, its:Tasks
, based onrunAfter
, will be executedTasks
will be attempted and:Results
, the dependentTasks
will be skipped due to missingResults
Tasks
will be skipped as wellResults
, these resource-dependentTasks
would be executed if defaultResults
are specified, read more in TEP-0048Workspaces
, make sure to handle the execution of the dependentTask
in case the file expected from the skipped parentTask
is missing from theWorkspace
Read more in Guard a
Task
only.Guard a
Task
and its dependentTasks
To guard a
Task
and its dependentTasks
, there are two options:when
expressions to the specific dependentTasks
to be guarded as wellTask
and its dependentTasks
as a unit to be guarded and executed together usingPipelines in Pipelines
(experimental feature), read more in TEP-0056Read more in Guard a
Task
and its dependentTasks
.Example
In the example below, manual-approval
Task
is executed only when merging a pull request, which is guarded usingwhen
expressions. To reuse thePipeline
when merging and not merging, the dependentTasks
need to be executed when the guarded manual-approvalTask
is skipped.Previously, if the
when
expressions in manual-approval were evaluated to"false"
, then manual-approval, build-image, deploy-image and slack-msgTasks
would all be skipped.With scoping
when
expressions toTask
, then build-image and deploy-image would be executed. For now, slack-msg would be skipped because of the missing approverResult
- but should be executed if you provide defaultResults
when we support them.Timeline
In February 2022, this flag will be flipped to
"true"
and then it’ll be removed in March 2022. Read more in Deprecations and TEP-0059: Skipping Strategies - Migration.Happy to answer any questions here or elsewhere. I’ll follow up with updates and reminders on this migration.
Thanks,
Jerop
Beta Was this translation helpful? Give feedback.
All reactions