From 815d6390f56dfa5d569490a477709c7803a94c59 Mon Sep 17 00:00:00 2001 From: Liang Huang Date: Thu, 30 May 2024 18:21:17 +0800 Subject: [PATCH] . Signed-off-by: Liang Huang --- ci/jenkins/PublishImages/Jenkinsfile | 31 ++++++++++++++++++++++------ 1 file changed, 25 insertions(+), 6 deletions(-) diff --git a/ci/jenkins/PublishImages/Jenkinsfile b/ci/jenkins/PublishImages/Jenkinsfile index 89e224b861aae..f81063bf6089b 100644 --- a/ci/jenkins/PublishImages/Jenkinsfile +++ b/ci/jenkins/PublishImages/Jenkinsfile @@ -72,14 +72,33 @@ def tekton() { def input = """ cat << EOF | kubectl apply -f - -apiVersion: tekton.dev/v1beta1 -kind: TaskRun +apiVersion: tekton.dev/v1 +kind: PipelineRun metadata: - name: hello-task-run - namespace: milvus-ci + generateName: milbuild- spec: - taskRef: - name: hello + pipelineRef: + name: milvus-clone-build-push + taskRunTemplate: + serviceAccountName: robot-tekton + podTemplate: + # hostNetwork: true + securityContext: + fsGroup: 65532 + workspaces: + - name: shared-data + volumeClaimTemplate: + spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 100Gi + params: + - name: revision + value: master + - name: arch + value: amd64 EOF """