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 20cf32c + 51026fc commit cdbfbc5
Show file tree
Hide file tree
Showing 10 changed files with 28 additions and 26 deletions.
19 changes: 10 additions & 9 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -669,6 +669,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 @@ -696,17 +697,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 @@ -736,17 +737,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 @@ -961,7 +962,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
2 changes: 1 addition & 1 deletion all
Submodule all updated 2 files
+10 −9 Jenkinsfile
+10 −9 book/Jenkinsfile
2 changes: 1 addition & 1 deletion bom
Submodule bom updated 2 files
+10 −9 Jenkinsfile
+10 −9 book/Jenkinsfile
19 changes: 10 additions & 9 deletions book/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -684,6 +684,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 @@ -711,17 +712,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 @@ -751,17 +752,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 @@ -976,7 +977,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
2 changes: 1 addition & 1 deletion model
Submodule model updated 2 files
+10 −9 Jenkinsfile
+10 −9 book/Jenkinsfile
2 changes: 1 addition & 1 deletion renderer-html
2 changes: 1 addition & 1 deletion servlet
Submodule servlet updated 2 files
+10 −9 Jenkinsfile
+10 −9 book/Jenkinsfile
2 changes: 1 addition & 1 deletion style
Submodule style updated 2 files
+10 −9 Jenkinsfile
+10 −9 book/Jenkinsfile
2 changes: 1 addition & 1 deletion taglib
Submodule taglib updated 2 files
+10 −9 Jenkinsfile
+10 −9 book/Jenkinsfile
2 changes: 1 addition & 1 deletion view
Submodule view updated 2 files
+10 −9 Jenkinsfile
+10 −9 book/Jenkinsfile

0 comments on commit cdbfbc5

Please sign in to comment.