Skip to content

Commit

Permalink
copyArtifacts changes: only use stable, required when params.requireL…
Browse files Browse the repository at this point in the history
…astBuild
  • Loading branch information
ao-apps committed Sep 8, 2023
1 parent 96745bc commit 4d79deb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Jenkinsfile
Expand Up @@ -966,11 +966,11 @@ void deploySteps(niceCmd, projectDir, deployJdk, maven, mavenOpts, mavenOptsJdk1
// See https://www.jenkins.io/doc/pipeline/steps/copyartifact/#copyartifacts-copy-artifacts-from-another-project
copyArtifacts(
projectName: "/${JOB_NAME}",
selector: lastSuccessful(stable: false),
selector: lastSuccessful(stable: true),
filter: '**/*.aar, **/*.jar, **/*.war, **/*.zip',
target: 'target/last-successful-artifacts',
flatten: true,
optional: true
optional: !params.requireLastBuild
)
// Temporarily move surefire-reports before withMaven to avoid duplicate logging of test results
sh moveSurefireReportsScript()
Expand Down
4 changes: 2 additions & 2 deletions book/Jenkinsfile
Expand Up @@ -947,11 +947,11 @@ void deploySteps(niceCmd, projectDir, deployJdk, maven, mavenOpts, mavenOptsJdk1
// See https://www.jenkins.io/doc/pipeline/steps/copyartifact/#copyartifacts-copy-artifacts-from-another-project
copyArtifacts(
projectName: "/${JOB_NAME}",
selector: lastSuccessful(stable: false),
selector: lastSuccessful(stable: true),
filter: '**/*.aar, **/*.jar, **/*.war, **/*.zip',
target: 'target/last-successful-artifacts',
flatten: true,
optional: true
optional: !params.requireLastBuild
)
// Temporarily move surefire-reports before withMaven to avoid duplicate logging of test results
sh moveSurefireReportsScript()
Expand Down

0 comments on commit 4d79deb

Please sign in to comment.