Skip to content

Commit

Permalink
Run prefetch-deps Task unconditionally in TA
Browse files Browse the repository at this point in the history
The way the docker-build-oci-ta Pipeline is defined, the
prefetch-dependencies Task must always execute. In some cases this
becomes a no-op operation and the provided source artifact is passed
through to its result.

This change removes the `when` clause from the Task in the
docker-build-oci-ta Pipeline. Without this, all Tasks are skipped after
the prefetch-dependencies Task.

Ref: KFLUXBUGS-1516

Signed-off-by: Luiz Carvalho <[email protected]>
  • Loading branch information
lcarva authored and zregvart committed Aug 9, 2024
1 parent 2680275 commit 51d7cf9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pipelines/docker-build-oci-ta/patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@
value: $(params.image-expires-after)
- op: remove
path: /spec/tasks/2/workspaces/0
- op: remove
path: /spec/tasks/2/when

# build-container
- op: replace
Expand Down

0 comments on commit 51d7cf9

Please sign in to comment.