From fba93aac48158151383048f72874b53c38db4a67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E6=8C=AF=E5=AE=87?= <> Date: Tue, 21 Jan 2025 17:40:42 +0800 Subject: [PATCH] feat(pipeline): switch from Docker to Kubernetes for dependencies resolving stage MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 孙振宇 <> --- first-class-pipeline/vars/pipelineCall.groovy | 24 +++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/first-class-pipeline/vars/pipelineCall.groovy b/first-class-pipeline/vars/pipelineCall.groovy index ea545448..0db3d709 100644 --- a/first-class-pipeline/vars/pipelineCall.groovy +++ b/first-class-pipeline/vars/pipelineCall.groovy @@ -71,8 +71,28 @@ def call(Map configurations) { stage("Dependencies Resolving") { agent { - docker { - image env.BUILD_AGENT_IMAGE + kubernetes { + defaultContainer 'dep-resolver' + yaml """ +apiVersion: v1 +kind: Pod +metadata: + labels: + freeleaps-devops-system/stage: dependencies-resolving +spec: + containers: + - name: dep-resolver + image: ${env.BUILD_AGENT_IMAGE} + command: + - cat + tty: true + volumeMounts: + - name: workspace + mountPath: /workspace + volumes: + - name: workspace + emptyDir: {} +""" } } steps {