From b6b147dbf3f43d050df7a038e76033d4c595fcbf Mon Sep 17 00:00:00 2001 From: Marcus Noble Date: Sat, 23 Oct 2021 07:20:19 +0100 Subject: [PATCH] Fix build - missing dashboard files Signed-off-by: Marcus Noble --- tekton/task-fetch-components.yaml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/tekton/task-fetch-components.yaml b/tekton/task-fetch-components.yaml index f18dcbec7e..91151fc8f7 100644 --- a/tekton/task-fetch-components.yaml +++ b/tekton/task-fetch-components.yaml @@ -48,6 +48,16 @@ spec: dir="trigger" fi + if [[ $comp == "dashboard" ]]; then + if [[ ${releaseFileName} == "tekton-dashboard-release" ]]; then + dir="dashboard/tekton-dashboard-fullaccess" + fi + + if [[ ${releaseFileName} == "tekton-dashboard-release-readonly" ]]; then + dir="dashboard/tekton-dashboard-readonly" + fi + fi + #nightly -> 0.0.0-nightly #latest -> find version till then -> 0.0.0-latest #version -> directory with version @@ -73,7 +83,7 @@ spec: # before adding releases, remove existing version directories # ignore while adding for interceptors - if [[ ${releaseFileName} != "interceptors.notags" ]] ; then + if [[ ${releaseFileName} != "interceptors" ]] ; then rm -rf ${comp_dir}/* fi @@ -97,6 +107,7 @@ spec: cp ${ko_data}/openshift/pipelines-rbac/* ${dirPath}/ fi + if [[ ${comp} == "dashboard" ]]; then sed -i '/aggregationRule/,+3d' ${dest} fi