From b956afffdfc4322ede87d1168931d274298114e9 Mon Sep 17 00:00:00 2001 From: "Stephen M. Coakley" Date: Mon, 18 Mar 2019 14:00:45 -0500 Subject: [PATCH] Interpolate variables by default --- .../main/groovy/com/widen/plugins/UploadPipeline.groovy | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/buildSrc/src/main/groovy/com/widen/plugins/UploadPipeline.groovy b/buildSrc/src/main/groovy/com/widen/plugins/UploadPipeline.groovy index 7730558..f9f553a 100644 --- a/buildSrc/src/main/groovy/com/widen/plugins/UploadPipeline.groovy +++ b/buildSrc/src/main/groovy/com/widen/plugins/UploadPipeline.groovy @@ -7,6 +7,7 @@ import org.gradle.api.tasks.TaskAction import java.nio.file.Files class UploadPipeline extends DefaultTask { + private boolean interpolation = true private boolean replace = false private steps = [] @@ -51,7 +52,11 @@ class UploadPipeline extends DefaultTask { @TaskAction void upload() { if (System.env.BUILDKITE || System.env.CI) { - def cmd = ['buildkite-agent', 'pipeline', 'upload', '--no-interpolation'] + def cmd = ['buildkite-agent', 'pipeline', 'upload'] + + if (!interpolation) { + cmd << '--no-interpolation' + } if (replace) { cmd << '--replace'