Skip to content

Commit

Permalink
New boolean build parameter "requireLastBuild" and also fetch *.zip f…
Browse files Browse the repository at this point in the history
…rom last successful build
  • Loading branch information
ao-apps committed Sep 7, 2023
1 parent 250e143 commit eebbc15
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 4 deletions.
16 changes: 14 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,19 @@ pipeline {
]))
}
parameters {
string(name: 'BuildPriority', defaultValue: "$buildPriority", description: "Specify the priority of this build.\nDefaults to project's depth in the upstream project graph")
string(
name: 'BuildPriority',
defaultValue: "$buildPriority",
description: """Specify the priority of this build.
Defaults to project's depth in the upstream project graph."""
)
booleanParam(
name: 'requireLastBuild',
defaultValue: true,
description: """Is the last build required for the zip-timestamp-merge Ant task?
Defaults to true and will typically only be false for either the first build
or any build that adds or removes build artifacts."""
)
}
triggers {
upstream(
Expand Down Expand Up @@ -932,7 +944,7 @@ void deploySteps(niceCmd, projectDir, deployJdk, maven, mavenOpts, mavenOptsJdk1
copyArtifacts(
projectName: "/${JOB_NAME}",
selector: lastSuccessful(stable: false),
filter: '**/*.aar, **/*.jar, **/*.war',
filter: '**/*.aar, **/*.jar, **/*.war, **/*.zip',
target: 'target/last-successful-artifacts',
flatten: true,
optional: true
Expand Down
16 changes: 14 additions & 2 deletions book/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,19 @@ pipeline {
]))
}
parameters {
string(name: 'BuildPriority', defaultValue: "$buildPriority", description: "Specify the priority of this build.\nDefaults to project's depth in the upstream project graph")
string(
name: 'BuildPriority',
defaultValue: "$buildPriority",
description: """Specify the priority of this build.
Defaults to project's depth in the upstream project graph."""
)
booleanParam(
name: 'requireLastBuild',
defaultValue: true,
description: """Is the last build required for the zip-timestamp-merge Ant task?
Defaults to true and will typically only be false for either the first build
or any build that adds or removes build artifacts."""
)
}
triggers {
upstream(
Expand Down Expand Up @@ -936,7 +948,7 @@ void deploySteps(niceCmd, projectDir, deployJdk, maven, mavenOpts, mavenOptsJdk1
copyArtifacts(
projectName: "/${JOB_NAME}",
selector: lastSuccessful(stable: false),
filter: '**/*.aar, **/*.jar, **/*.war',
filter: '**/*.aar, **/*.jar, **/*.war, **/*.zip',
target: 'target/last-successful-artifacts',
flatten: true,
optional: true
Expand Down

0 comments on commit eebbc15

Please sign in to comment.