From f007124eaa2dedb89a697ec1bc8ff907fcdd11c8 Mon Sep 17 00:00:00 2001 From: arewm Date: Fri, 8 Mar 2024 14:12:46 -0500 Subject: [PATCH] Removing unneeded tasks from FBC pipeline This is follow-on work from the following PRs: https://github.com/release-engineering/rhtap-ec-policy/pull/19 https://github.com/redhat-appstudio/e2e-tests/pull/1065 Signed-off-by: arewm --- pipelines/fbc-builder/patch.yaml | 30 +++++++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/pipelines/fbc-builder/patch.yaml b/pipelines/fbc-builder/patch.yaml index 8a131d3fb1..56b08f1000 100644 --- a/pipelines/fbc-builder/patch.yaml +++ b/pipelines/fbc-builder/patch.yaml @@ -28,6 +28,33 @@ value: "$(params.image-expires-after)" - name: COMMIT_SHA value: "$(tasks.clone-repository.results.commit)" +# Remove tasks +# Example - yq .spec.tasks.[].name ../build-definitions/pipelines/template-build/template-build.yaml | nl -v 0 +# to compute offsets +# 0 init +# 1 clone-repository +# 2 prefetch-dependencies +# 3 build-container +# 4 build-source-image +# 5 deprecated-base-image-check +# 6 clair-scan +# 7 ecosystem-cert-preflight-checks +# 8 sast-snyk-check +# 9 clamav-scan +# 10 sbom-json-check +- op: replace + path: /spec/tasks/3/runAfter/0 + value: clone-repository +- op: remove + path: /spec/tasks/9 # clamav-scan +- op: remove + path: /spec/tasks/8 # sast-snyk-check +- op: remove + path: /spec/tasks/7 # ecosystem-cert-preflight-checks +- op: remove + path: /spec/tasks/6 # clair-scan +- op: remove + path: /spec/tasks/2 # prefetch-dependencies - op: add path: /spec/tasks/- value: @@ -88,6 +115,3 @@ workspaces: - name: workspace workspace: workspace -# - op: remove -# # build-source-image as source images are not needed for FBC components -# path: /spec/tasks/4