refactor(Jenkinsfile, executeFreeleapsPipeline): disable commit message linting and add fail-fast option for parallel execution
Signed-off-by: 孙振宇 <>
This commit is contained in:
parent
1fec9ad9d7
commit
e574581d02
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
2
first-class-pipeline/tests/Jenkinsfile
vendored
2
first-class-pipeline/tests/Jenkinsfile
vendored
@ -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'
|
||||
|
||||
@ -20,6 +20,7 @@ def call(Closure closure) {
|
||||
options {
|
||||
buildDiscarder(logRotator(numToKeepStr: '25'))
|
||||
timeout(time: 30, unit: 'MINUTES')
|
||||
parallelsAlwaysFailFast()
|
||||
}
|
||||
|
||||
stages {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user