Manage Build Queue Priorities via REST API?

Is there a way to manage build queue priorities with the REST API?

It is not documented here: https://confluence.jetbrains.com/display/TCD9/REST+API

And in the WADL I cannot find any text containing "prio".

I wanted to assign to the automatically created build configurations the lowest priority (priority class with value -100).

0
3 comments
Avatar
Permanently deleted user

Besides this, I would have a improvement suggestion. The priorities refer now to build type IDs.

It would be cool if I could set a priority for all builds in a project. In the config XML it would look like:

  <priority-class id="pc1" name="Highest" priority="100" description="">
    <project id="important_builds" />

  </priority-class>

0

Hi Ernesto,

Currently it's not possible to set build queue priorities via REST API. Please vote for https://youtrack.jetbrains.com/issue/TW-23266. As current workaround you can patch the priorities settings file on disk. BTW, could you please detail why do you need that? Do you use queue
priorities a lot?
Setting the priority on project level is not supported, please vote for https://youtrack.jetbrains.com/issue/TW-41645. Thank you for your feedback!

0
Avatar
Permanently deleted user

Thank you, I now voted for them.

I create thousands of build configurations via REST API and wanted to also assign a build queue priority to them lower than default priority.

Setting a priority level based on project would be better in my case than directly to each of the hundreds or thousands build configurations.

0

Please sign in to leave a comment.