Comments (3)
Oh right okay 👍
This isn't specific to this provider as the steps
field is treated as a string. The priority
field of the pipeline yaml cannot be non-numeric for the steps stored against the pipeline because the steps are not evaluated at runtime. So you'll need to interpolate that string with your environment variables in terraform before/during the apply so that by the time it gets uploaded to the API it looks like priority: 0
.
It's the same sort of thing as if you called buildkite-agent pipeline upload <<YAML
from terraform-provider-buildkite.
Hi @fa93hws, I'm not sure where this fits into the terraform provider. We don't have any configuration for priority. Can you provide a more complete example of this issue for us to look at?
from terraform-provider-buildkite.
Hi thanks for the quick reply. I can not provide a CI link because it's internal sorry. What I have done is
# language=yaml
steps = <<YAML
env:
${local.env}
steps:
- xxxx
label: "xxxx"
priority: $${STEP_PRIORITY_KICKSTART:-0}
agents:
- "xxxx"
And then I got the following error during apply saying:
Error: One of the steps you provided was invalid: is not a number
This error vanish once I change priority: $${STEP_PRIORITY_KICKSTART:-0}
to priority: 1
from terraform-provider-buildkite.
Related Issues (20)
- Support for configuring default and maximum command timeouts HOT 2
- Plugin crash on buildkite_pipeline data source for a slug that doesn't exist HOT 2
- [Feature request] Support pipeline template assignment during pipeline resource creation HOT 2
- registry.terraform.io documentation does not seem to match repo HOT 1
- Add rate limit for calls to Buildkite's REST API HOT 14
- webhookUrl no longer available on `buildkite_pipeline` HOT 12
- [feat request] Add buildkite.Provider() returns schema provider HOT 1
- [bug report] AttributeName("provider_settings"): invalid JSON error HOT 1
- Cannot create and sign a pipeline in a single apply, pipeline must be created without signing and then updated to add signing HOT 2
- Using replace_triggered_by causes pipeline destruction instead of update in-place HOT 1
- When a group of pipelines are replaced with destroy/create, the create is skipped if any of the pipelines are running HOT 1
- Pipeline resource does not handle org setting requiring pipeline templates
- Buildkite producing invalid terraform plan HOT 3
- Add Support for Archiving Pipelines HOT 1
- Feature request: support pausing/resuming dispatch on cluster queues
- Feature request: Add `key` or `name` field for the buildkite_cluster_default_queue resource HOT 5
- feature request: Add datasources to get the list of organization members HOT 2
- Seg fault when cluster queue is not found
- Terraform fails to create/update team on Buildkite Pro plan HOT 2
- Feature: add resource for generating a GraphQL token HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terraform-provider-buildkite.