From 0905bd2f24c9ba10f0dc628739aaca77c70dd09f Mon Sep 17 00:00:00 2001 From: Maor Friedman Date: Sun, 1 Dec 2024 11:10:35 +0200 Subject: [PATCH] [pipelines/push-disk-images-to-cdn] add update-cr-status --- pipelines/push-disk-images-to-cdn/README.md | 3 +++ .../push-disk-images-to-cdn.yaml | 22 ++++++++++++++++++- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/pipelines/push-disk-images-to-cdn/README.md b/pipelines/push-disk-images-to-cdn/README.md index 7252ec7c8..c13429297 100644 --- a/pipelines/push-disk-images-to-cdn/README.md +++ b/pipelines/push-disk-images-to-cdn/README.md @@ -20,6 +20,9 @@ Tekton Pipeline to push disk images to a cdn using pulp | taskGitUrl | The url to the git repo where the release-service-catalog tasks to be used are stored | Yes | https://github.com/konflux-ci/release-service-catalog.git | | taskGitRevision | The revision in the taskGitUrl repo to be used | No | - | +## Changes in 1.2.0 +* Add the task `update-cr-status` at the end of the pipeline to save all pipeline results + ## Changes in 1.1.0 * Add new reduce-snapshot task diff --git a/pipelines/push-disk-images-to-cdn/push-disk-images-to-cdn.yaml b/pipelines/push-disk-images-to-cdn/push-disk-images-to-cdn.yaml index d54484ed5..1eae1a29a 100644 --- a/pipelines/push-disk-images-to-cdn/push-disk-images-to-cdn.yaml +++ b/pipelines/push-disk-images-to-cdn/push-disk-images-to-cdn.yaml @@ -4,7 +4,7 @@ kind: Pipeline metadata: name: push-disk-images-to-cdn labels: - app.kubernetes.io/version: "1.1.0" + app.kubernetes.io/version: "1.2.0" annotations: tekton.dev/pipelines.minVersion: "0.12.1" tekton.dev/tags: release @@ -235,6 +235,26 @@ spec: workspace: release-workspace runAfter: - check-data-keys + - name: update-cr-status + params: + - name: resource + value: $(params.release) + - name: resultsDirPath + value: $(tasks.collect-data.results.resultsDir) + taskRef: + resolver: "git" + params: + - name: url + value: $(params.taskGitUrl) + - name: revision + value: $(params.taskGitRevision) + - name: pathInRepo + value: tasks/update-cr-status/update-cr-status.yaml + workspaces: + - name: data + workspace: release-workspace + runAfter: + - push-disk-images finally: - name: cleanup taskRef: