From 05bb4e408d7e6a5a8168fda783bf9692507f98b4 Mon Sep 17 00:00:00 2001 From: Mattias Appelgren Date: Tue, 30 Mar 2021 13:06:35 +0200 Subject: [PATCH] buildkite_pipeline: Deprecate step and env. Document configuration. --- LICENSE | 2 +- buildkite/provider/resource_pipeline.go | 2 ++ website/docs/r/pipeline.md | 20 ++++++++++---------- 3 files changed, 13 insertions(+), 11 deletions(-) diff --git a/LICENSE b/LICENSE index 597bf03..3db585c 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2018 Say Media +Copyright (c) 2021 Tink AB Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/buildkite/provider/resource_pipeline.go b/buildkite/provider/resource_pipeline.go index ad7e139..c726bdf 100644 --- a/buildkite/provider/resource_pipeline.go +++ b/buildkite/provider/resource_pipeline.go @@ -60,6 +60,7 @@ var ( Type: schema.TypeMap, Optional: true, ConflictsWith: []string{"configuration"}, + Deprecated: "Use configuration instead that supports YAML steps", Elem: &schema.Schema{ Type: schema.TypeString, }, @@ -77,6 +78,7 @@ var ( Type: schema.TypeList, Optional: true, ConflictsWith: []string{"configuration"}, + Deprecated: "Use configuration instead that supports YAML steps", Elem: &schema.Resource{ Schema: map[string]*schema.Schema{ "type": { diff --git a/website/docs/r/pipeline.md b/website/docs/r/pipeline.md index ca62f56..0a3bc45 100644 --- a/website/docs/r/pipeline.md +++ b/website/docs/r/pipeline.md @@ -20,19 +20,17 @@ resource "buildkite_pipeline" "build_something" { default_branch = "master" repository = "git@github.com:my-org/awesome-repo.git" - + github { build_pull_request_forks = true } - step { - name = ":pipeline: Fetch pipeline" - type = "script" - command = "buildkite-agent pipeline upload" + configuration = <