Chris F
Chris F

Reputation: 16803

How to set build step parameter as "editable choice" when triggering another job in Jenkins pipeline?

I have the following to trigger a downstream job in Jenkins

build job: "some-downstream-job",
      parameters: [
        string(name: "BUILD_NODE", value: buildNode)
      ],
      wait: true

and since some-downstream-job's BUILD_NODE parameter is set to editableChoice, I get the following warning

The parameter 'BUILD_NODE' did not have the type expected by some-downstream-job. Converting to Editable choice.

However, there is no editableChoice option when using the build step, meaning this fails

build job: "some-downstream-job",
      parameters: [
        editableChoice(name: "BUILD_NODE", value: buildNode)
      ],
      wait: true

So what's the correct parameter type?

I know I can leave it the way it is, but it just bothers me.

Upvotes: 0

Views: 34

Answers (0)

Related Questions