fix: Jenkinsfile修复1
This commit is contained in:
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
@@ -208,7 +208,6 @@ pipeline {
|
||||
-t ${env.DEPS_IMAGE} \
|
||||
--build-arg BUILDKIT_INLINE_CACHE=1 \
|
||||
--build-arg MAVEN_OPTS="${env.MAVEN_OPTS}" \
|
||||
-v ${env.MAVEN_CACHE_VOLUME}:/var/jenkins_home/.m2/repository \
|
||||
.
|
||||
|
||||
docker push ${env.DEPS_IMAGE}
|
||||
@@ -616,7 +615,8 @@ def archivePerformanceMetrics() {
|
||||
}
|
||||
}
|
||||
|
||||
writeJSON file: metricsFile, json: metricsData
|
||||
// writeJSON file: metricsFile, json: metricsData
|
||||
writeFile file: metricsFile, text: groovy.json.JsonOutput.prettyPrint(groovy.json.JsonOutput.toJson(metricsData))
|
||||
archiveArtifacts artifacts: "build-metrics-${env.BUILD_NUMBER}.json", allowEmptyArchive: true
|
||||
|
||||
echo "✅ Performance metrics archived: ${metricsFile}"
|
||||
@@ -771,7 +771,6 @@ def buildService(String service) {
|
||||
--build-arg JAR_NAME=${service} \\
|
||||
--build-arg SKIP_TESTS=true \\
|
||||
--build-arg MAVEN_OPTS="${env.MAVEN_OPTS}" \\
|
||||
-v ${env.MAVEN_CACHE_VOLUME}:/var/jenkins_home/.m2/repository \\
|
||||
-t ${env.REGISTRY}/${service}:${env.IMAGE_TAG} \\
|
||||
-t ${env.REGISTRY}/${service}:latest \\
|
||||
.
|
||||
|
||||
Reference in New Issue
Block a user