refactor(executeFreeleapsPipeline): streamline component build and dependency resolution stages

Signed-off-by: 孙振宇 <>
This commit is contained in:
孙振宇 2025-02-04 10:36:58 +08:00
parent 376fa19c78
commit c84c65ce87

View File

@ -104,6 +104,9 @@ spec:
}
}
stage("Components Build (Dynamic Generated Stages)") {
steps {
script {
configurations.components.each { component ->
stage("${component} :: Build Agent Setup") {
when {
@ -148,12 +151,12 @@ spec:
kubernetes {
defaultContainer 'dep-resolver'
yaml """
apiVersion: v1
kind: Pod
metadata:
apiVersion: v1
kind: Pod
metadata:
labels:
freeleaps-devops-system/milestone: dependencies-resolving
spec:
spec:
containers:
- name: dep-resolver
image: ${env.buildAgentImage}
@ -166,7 +169,7 @@ spec:
volumes:
- name: workspace
emptyDir: {}
"""
"""
}
}
@ -191,6 +194,9 @@ spec:
}
}
}
}
}
}
}
}