From 7f267728b79f858229fad70657a8cd7dff46705e Mon Sep 17 00:00:00 2001 From: Nikhil Thomas Date: Mon, 14 Mar 2022 18:26:45 +0530 Subject: [PATCH] Update release pipelines Add Hub and Chains versions PARAM to release pipelien and fetch component task Signed-off-by: Nikhil Thomas --- tekton/operator-release-pipeline.yaml | 16 ++++++++++++++++ tekton/task-fetch-components.yaml | 11 +++++++++-- 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/tekton/operator-release-pipeline.yaml b/tekton/operator-release-pipeline.yaml index 94859dc22d..7aa389eab6 100644 --- a/tekton/operator-release-pipeline.yaml +++ b/tekton/operator-release-pipeline.yaml @@ -45,6 +45,16 @@ spec: description: Version of TektonCD Results Release to be packaged with this operator build # TODO: Set default to nightly. Aug 10, 2021 - no nightly releases available for Results default: "latest" + - name: PACVersion + description: Version of Pipeline as Code (OpnenShift only) + default: "0.5.3" + - name: TektonCDChainsVersion + description: Version of TektonCD Chains Release to be packaged with this operator build + default: "nightly" + - name: TektonCDHubVersion + description: Version of TektonCD Hub Release to be packaged with this operator build + # TODO: Set default to nightly. Mar 09, 2022 - no nightly ("latest") releases available for Hub + default: "v1.7.0" workspaces: - name: workarea description: The workspace where the repo will be cloned. @@ -127,6 +137,12 @@ spec: value: $(params.TektonCDDashboardVersion) - name: RESULTS_VERSION value: $(params.TektonCDResultsVersion) + - name: PAC_VERSION + value: $(params.PACVersion) + - name: HUB_VERSION + value: $(params.TektonCDHubVersion) + - name: CHAINS_VERSION + value: $(params.TektonCDChainsVersion) - name: TARGET_PLATFORMS value: $(params.kubeDistros) - name: build-test diff --git a/tekton/task-fetch-components.yaml b/tekton/task-fetch-components.yaml index 8f0297215b..f08a930dd6 100644 --- a/tekton/task-fetch-components.yaml +++ b/tekton/task-fetch-components.yaml @@ -18,9 +18,16 @@ spec: - name: RESULTS_VERSION description: Version of TektonCD Results being fetched default: "latest" + - name: PAC_VERSION + description: Version of Pipeline as Code (OpnenShift only) + default: "0.5.3" - name: CHAINS_VERSION description: Version of TektonCD Chains being fetched default: "latest" + - name: HUB_VERSION + description: Version of TektonCD Hub being fetched + default: "v1.7.0" + # TODO: Set default to nightly. Mar 09, 2022 - no nightly ("latest") releases available for Hub - name: TARGET_PLATFORMS description: Target platform for for which the payload is going to be used default: "kubernetes openshift" @@ -33,8 +40,8 @@ spec: apk add bash # Bash is not present for platform in $(params.TARGET_PLATFORMS); do echo "Fetching Tekton components for ${platform} build" - ./hack/fetch-releases.sh ${platform} $(params.PIPELINES_VERSION) $(params.TRIGGERS_VERSION) $(params.DASHBOARD_VERSION) $(params.RESULTS_VERSION) $(params.CHAINS_VERSION) - + ./hack/fetch-releases.sh ${platform} $(params.PIPELINES_VERSION) $(params.TRIGGERS_VERSION) $(params.DASHBOARD_VERSION) $(params.RESULTS_VERSION) $(params.PAC_VERSION) $(params.HUB_VERSION) $(params.CHAINS_VERSION) + [[ "$?" != 0 ]] && exit 1 # print directory structure of cmd//operator/kodata find cmd/${platform}/operator/kodata/ done