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 fb84225
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 6 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,11 @@ 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, """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 +936,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
8 changes: 6 additions & 2 deletions book/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,11 @@ 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, """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 +940,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 fb84225

Please sign in to comment.