From e574581d022b4615ce110af1ff965a23f8f9d574 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E6=8C=AF=E5=AE=87?= <> Date: Tue, 4 Feb 2025 12:08:52 +0800 Subject: [PATCH] refactor(Jenkinsfile, executeFreeleapsPipeline): disable commit message linting and add fail-fast option for parallel execution MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 孙振宇 <> --- .../src/com/freeleaps/devops/ChangedComponentsDetector.groovy | 2 +- first-class-pipeline/tests/Jenkinsfile | 2 +- first-class-pipeline/vars/executeFreeleapsPipeline.groovy | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/first-class-pipeline/src/com/freeleaps/devops/ChangedComponentsDetector.groovy b/first-class-pipeline/src/com/freeleaps/devops/ChangedComponentsDetector.groovy index 33db6920..aa7dff2a 100644 --- a/first-class-pipeline/src/com/freeleaps/devops/ChangedComponentsDetector.groovy +++ b/first-class-pipeline/src/com/freeleaps/devops/ChangedComponentsDetector.groovy @@ -19,7 +19,7 @@ class ChangedComponentsDetector { changedFiles.each { file -> components.each { component -> - if (file.startsWith("${component.name}/")) { + if (file.startsWith("${component.root}/")) { changedComponents.add(component.name) } } diff --git a/first-class-pipeline/tests/Jenkinsfile b/first-class-pipeline/tests/Jenkinsfile index d6941608..e4d398f1 100644 --- a/first-class-pipeline/tests/Jenkinsfile +++ b/first-class-pipeline/tests/Jenkinsfile @@ -7,7 +7,7 @@ executeFreeleapsPipeline { serviceGitRepo = "https://freeleaps@dev.azure.com/freeleaps/magicleaps/_git/magicleaps" serviceGitRepoType = 'monorepo' // monorepo, separated executeMode = 'on-demand' // on-demand, fully - commitMessageLintEnabled = true + commitMessageLintEnabled = false components = [ { name = 'frontend' diff --git a/first-class-pipeline/vars/executeFreeleapsPipeline.groovy b/first-class-pipeline/vars/executeFreeleapsPipeline.groovy index 4bc5df68..13543cb2 100644 --- a/first-class-pipeline/vars/executeFreeleapsPipeline.groovy +++ b/first-class-pipeline/vars/executeFreeleapsPipeline.groovy @@ -20,6 +20,7 @@ def call(Closure closure) { options { buildDiscarder(logRotator(numToKeepStr: '25')) timeout(time: 30, unit: 'MINUTES') + parallelsAlwaysFailFast() } stages {