Code Monkey home page Code Monkey logo

Comments (3)

jradtilbrook avatar jradtilbrook commented on August 17, 2024 1

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.

jradtilbrook avatar jradtilbrook commented on August 17, 2024

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.

fa93hws avatar fa93hws commented on August 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.