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
Uh oh!
There was an error while loading. Please reload this page.
-
Hello Tekton Friends!
This discussion is about changes to
whenexpressions in Tekton Pipelines 0.27.We are migrating to using
whenexpressions to guard aTaskonly. For further details, read the proposal in TEP-0059: Skipping Strategies.Set
scope-when-expressions-to-taskfield in feature flags to"true"enable the new functionality.Guard a
TaskonlyWhen guarding a
Taskonly, its:Tasks, based onrunAfter, will be executedTaskswill be attempted and:Results, the dependentTaskswill be skipped due to missingResultsTaskswill be skipped as wellResults, these resource-dependentTaskswould be executed if defaultResultsare specified, read more in TEP-0048Workspaces, make sure to handle the execution of the dependentTaskin case the file expected from the skipped parentTaskis missing from theWorkspaceRead more in Guard a
Taskonly.Guard a
Taskand its dependentTasksTo guard a
Taskand its dependentTasks, there are two options:whenexpressions to the specific dependentTasksto be guarded as wellTaskand its dependentTasksas a unit to be guarded and executed together usingPipelines in Pipelines(experimental feature), read more in TEP-0056Read more in Guard a
Taskand its dependentTasks.Example
In the example below, manual-approval
Taskis executed only when merging a pull request, which is guarded usingwhenexpressions. To reuse thePipelinewhen merging and not merging, the dependentTasksneed to be executed when the guarded manual-approvalTaskis skipped.Previously, if the
whenexpressions in manual-approval were evaluated to"false", then manual-approval, build-image, deploy-image and slack-msgTaskswould all be skipped.With scoping
whenexpressions 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 defaultResultswhen 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