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 4, 2023
2 parents 36f612d + 33318f9 commit 42559af
Show file tree
Hide file tree
Showing 10 changed files with 36 additions and 8 deletions.
14 changes: 14 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,9 @@ pipeline {
quietPeriod(quietPeriod)
skipDefaultCheckout()
timeout(time: 2, unit: 'HOURS')
// Only allowed to copy build artifacts from self
// See https://plugins.jenkins.io/copyartifact/
copyArtifactPermission("/${JOB_NAME}")
// See https://plugins.jenkins.io/build-history-manager/
buildDiscarder(BuildHistoryManager([
[
Expand Down Expand Up @@ -913,6 +916,17 @@ void deploySteps(niceCmd, projectDir, deployJdk, maven, mavenOpts, mavenOptsJdk1
// Make sure working tree not modified by build or test
sh checkTreeUnmodifiedScriptBuild(niceCmd)
dir(projectDir) {
// Download artifacts from last successful build of this job
// See https://plugins.jenkins.io/copyartifact/
// See https://www.jenkins.io/doc/pipeline/steps/copyartifact/#copyartifacts-copy-artifacts-from-another-project
copyArtifacts(
projectName: "/${JOB_NAME}",
selector: lastSuccessful(stable: false),
filter: '**/*.aar, **/*.jar, **/*.war',
target: 'target/last-successful-artifacts',
flatten: true,
optional: true
)
// Temporarily move surefire-reports before withMaven to avoid duplicate logging of test results
sh moveSurefireReportsScript()
withMaven(
Expand Down
2 changes: 1 addition & 1 deletion all
Submodule all updated 2 files
+14 −0 Jenkinsfile
+14 −0 book/Jenkinsfile
2 changes: 1 addition & 1 deletion bom
Submodule bom updated 2 files
+14 −0 Jenkinsfile
+14 −0 book/Jenkinsfile
14 changes: 14 additions & 0 deletions book/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,9 @@ pipeline {
quietPeriod(quietPeriod)
skipDefaultCheckout()
timeout(time: 2, unit: 'HOURS')
// Only allowed to copy build artifacts from self
// See https://plugins.jenkins.io/copyartifact/
copyArtifactPermission("/${JOB_NAME}")
// See https://plugins.jenkins.io/build-history-manager/
buildDiscarder(BuildHistoryManager([
[
Expand Down Expand Up @@ -928,6 +931,17 @@ void deploySteps(niceCmd, projectDir, deployJdk, maven, mavenOpts, mavenOptsJdk1
// Make sure working tree not modified by build or test
sh checkTreeUnmodifiedScriptBuild(niceCmd)
dir(projectDir) {
// Download artifacts from last successful build of this job
// See https://plugins.jenkins.io/copyartifact/
// See https://www.jenkins.io/doc/pipeline/steps/copyartifact/#copyartifacts-copy-artifacts-from-another-project
copyArtifacts(
projectName: "/${JOB_NAME}",
selector: lastSuccessful(stable: false),
filter: '**/*.aar, **/*.jar, **/*.war',
target: 'target/last-successful-artifacts',
flatten: true,
optional: true
)
// Temporarily move surefire-reports before withMaven to avoid duplicate logging of test results
sh moveSurefireReportsScript()
withMaven(
Expand Down
2 changes: 1 addition & 1 deletion model
Submodule model updated 2 files
+14 −0 Jenkinsfile
+14 −0 book/Jenkinsfile
2 changes: 1 addition & 1 deletion renderer-html
2 changes: 1 addition & 1 deletion servlet
Submodule servlet updated 2 files
+14 −0 Jenkinsfile
+14 −0 book/Jenkinsfile
2 changes: 1 addition & 1 deletion style
Submodule style updated 2 files
+14 −0 Jenkinsfile
+14 −0 book/Jenkinsfile
2 changes: 1 addition & 1 deletion taglib
Submodule taglib updated 2 files
+14 −0 Jenkinsfile
+14 −0 book/Jenkinsfile
2 changes: 1 addition & 1 deletion view
Submodule view updated 2 files
+14 −0 Jenkinsfile
+14 −0 book/Jenkinsfile

0 comments on commit 42559af

Please sign in to comment.