Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/1.x'
Browse files Browse the repository at this point in the history
  • Loading branch information
ao-apps committed Sep 19, 2023
2 parents f251bfd + 1abb09f commit 2e0153e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 18 deletions.
19 changes: 10 additions & 9 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -698,6 +698,7 @@ or any build that adds or removes build artifacts."""
}
}
steps {
// See https://www.jenkins.io/doc/pipeline/steps/params/gitscm/
// See https://www.jenkins.io/doc/pipeline/steps/workflow-scm-step/#checkout-check-out-from-version-control
// See https://stackoverflow.com/questions/43293334/sparsecheckout-in-jenkinsfile-pipeline
/*
Expand Down Expand Up @@ -725,17 +726,17 @@ or any build that adds or removes build artifacts."""
// [$class: 'CleanCheckout'],
[$class: 'CloneOption',
// See https://issues.jenkins.io/browse/JENKINS-45586
shallow: true,
depth: 20,
shallow: false,
// depth: 20,
honorRefspec: true
],
[$class: 'SparseCheckoutPaths',
sparseCheckoutPaths: sparseCheckoutPaths
],
[$class: 'SubmoduleOption',
disableSubmodules: disableSubmodules,
shallow: true,
depth: 20
shallow: false
// depth: 20
]
]
]
Expand Down Expand Up @@ -765,17 +766,17 @@ or any build that adds or removes build artifacts."""
// [$class: 'CleanCheckout'],
[$class: 'CloneOption',
// See https://issues.jenkins.io/browse/JENKINS-45586
shallow: true,
depth: 20,
shallow: false,
// depth: 20,
honorRefspec: true
],
[$class: 'SparseCheckoutPaths',
sparseCheckoutPaths: sparseCheckoutPaths
],
[$class: 'SubmoduleOption',
disableSubmodules: disableSubmodules,
shallow: true,
depth: 20
shallow: false
// depth: 20
]
]
]
Expand Down Expand Up @@ -990,7 +991,7 @@ void deploySteps(niceCmd, projectDir, deployJdk, maven, mavenOpts, mavenOptsJdk1
// Steps moved to separate function to avoid "Method too large"
// See https://stackoverflow.com/a/47631522
void sonarQubeAnalysisSteps(niceCmd, projectDir, deployJdk, maven, mavenOpts, mavenOptsJdk16, mvnCommon) {
sh "${niceCmd}git fetch --unshallow || true" // SonarQube does not currently support shallow fetch
// Not doing shallow: sh "${niceCmd}git fetch --unshallow || true" // SonarQube does not currently support shallow fetch
dir(projectDir) {
withSonarQubeEnv(installationName: 'AO SonarQube') {
withMaven(
Expand Down
19 changes: 10 additions & 9 deletions book/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -695,6 +695,7 @@ or any build that adds or removes build artifacts."""
}
}
steps {
// See https://www.jenkins.io/doc/pipeline/steps/params/gitscm/
// See https://www.jenkins.io/doc/pipeline/steps/workflow-scm-step/#checkout-check-out-from-version-control
// See https://stackoverflow.com/questions/43293334/sparsecheckout-in-jenkinsfile-pipeline
/*
Expand Down Expand Up @@ -722,17 +723,17 @@ or any build that adds or removes build artifacts."""
// [$class: 'CleanCheckout'],
[$class: 'CloneOption',
// See https://issues.jenkins.io/browse/JENKINS-45586
shallow: true,
depth: 20,
shallow: false,
// depth: 20,
honorRefspec: true
],
[$class: 'SparseCheckoutPaths',
sparseCheckoutPaths: sparseCheckoutPaths
],
[$class: 'SubmoduleOption',
disableSubmodules: disableSubmodules,
shallow: true,
depth: 20
shallow: false
// depth: 20
]
]
]
Expand Down Expand Up @@ -762,17 +763,17 @@ or any build that adds or removes build artifacts."""
// [$class: 'CleanCheckout'],
[$class: 'CloneOption',
// See https://issues.jenkins.io/browse/JENKINS-45586
shallow: true,
depth: 20,
shallow: false,
// depth: 20,
honorRefspec: true
],
[$class: 'SparseCheckoutPaths',
sparseCheckoutPaths: sparseCheckoutPaths
],
[$class: 'SubmoduleOption',
disableSubmodules: disableSubmodules,
shallow: true,
depth: 20
shallow: false
// depth: 20
]
]
]
Expand Down Expand Up @@ -987,7 +988,7 @@ void deploySteps(niceCmd, projectDir, deployJdk, maven, mavenOpts, mavenOptsJdk1
// Steps moved to separate function to avoid "Method too large"
// See https://stackoverflow.com/a/47631522
void sonarQubeAnalysisSteps(niceCmd, projectDir, deployJdk, maven, mavenOpts, mavenOptsJdk16, mvnCommon) {
sh "${niceCmd}git fetch --unshallow || true" // SonarQube does not currently support shallow fetch
// Not doing shallow: sh "${niceCmd}git fetch --unshallow || true" // SonarQube does not currently support shallow fetch
dir(projectDir) {
withSonarQubeEnv(installationName: 'AO SonarQube') {
withMaven(
Expand Down

0 comments on commit 2e0153e

Please sign in to comment.