feat(pipeline): switch from Docker to Kubernetes for dependencies resolving stage

Signed-off-by: 孙振宇 <>
This commit is contained in:
孙振宇 2025-01-21 17:40:42 +08:00
parent 93325d5405
commit fba93aac48

View File

@ -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 {