diff --git a/build.gradle b/build.gradle index b5b032e..0e83771 100644 --- a/build.gradle +++ b/build.gradle @@ -58,7 +58,7 @@ tasks.create('pipeline', UploadPipeline) { commandStep { label ':maven: Publish JARs' command './gradlew publish --continue $${GRADLE_SWITCHES}' - branch '*.*.*' + branches '*.*.*' agentQueue 'builder' dockerComposeContainer 'gradle' } diff --git a/buildSrc/src/main/groovy/com/widen/plugins/UploadPipeline.groovy b/buildSrc/src/main/groovy/com/widen/plugins/UploadPipeline.groovy index ed4a4ed..1a53a73 100644 --- a/buildSrc/src/main/groovy/com/widen/plugins/UploadPipeline.groovy +++ b/buildSrc/src/main/groovy/com/widen/plugins/UploadPipeline.groovy @@ -126,10 +126,10 @@ class UploadPipeline extends DefaultTask { /** * The branch pattern defining which branches will include this step in their builds. * - * @param branch + * @param branches The branches to match. */ - void branch(String branch) { - model.branches = branch + void branches(String... branches) { + model.branches = branches.join(' ') } }