最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

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

programmeradmin0浏览0评论

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.

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论