Skip to content

Commit

Permalink
Interpolate variables by default
Browse files Browse the repository at this point in the history
  • Loading branch information
sagebind committed Mar 18, 2019
1 parent 0f46fa0 commit b956aff
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []

Expand Down Expand Up @@ -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'
Expand Down

0 comments on commit b956aff

Please sign in to comment.