Jenkins - Running instances of single build concurrently

后端 未结 5 1047
一个人的身影
一个人的身影 2020-12-01 12:18

I\'d like to be able to run several builds of the same Jenkins job simultaneously.

Example:

  1. Build [*jenkins_job_1*]: calls an ant script with parameter
5条回答
  •  难免孤独
    2020-12-01 12:53

    You can select Build a Multi-configuration project (Matrix build) when you create the job. Then, under the job's configuration, you can define the Configuration Matrix which lets you specify one or more parameters (axes) for different builds. Regarding running simultaneously, you should be able to run as many simultaneous builds as you have executors (with the appropriate label).

    Unfortunately, the Jenkins wiki lacks documentation about this setup. There are a couple previous SO questions, here and here, that might provide a little guidance. There was a "recent" blog post about setting up a multi-configuration job to perform builds on various platforms.

提交回复
热议问题