Custom Jenkins scheduler -


we're seeing problem jenkins , scheduling of builds. specifically, trigger jenkins build pipeline of work every push every branch of our git repo. on own, whole pipeline can take 10 20 minutes build. can cause problem if multiple pushes branch happened faster builds completing. multiplied twenty or thirty branches in development.

so, i'd able automatically deprioritise scheduled builds on jenkins if triggered on git commit sha no longer tip of branch. 1 example of factor might indicate desired priority. others branches open pull requests should have higher priority without; or manual input in order prioritise pr or branch needs feedback immediately.

is there anyway programmatically interact queue of jobs on jenkins , reorder it?

there priority sorter plugin, far know assigns each build static priority. dynamically reprioritise items in queue based on external info (e.g. git).

i've found reference two other plugins names indicate might want, can't find meaningful documentation on them. former doesn't provide options claims to, , latter doesn't exist in plugins repository. neither seems maintained.

my alternatives seem

  • write own implementation of hudson.model.queue, seems overkill
  • maintain separate queueing service triggers individual jobs on jenkins, in case jenkins for?

am missing obvious? can't person wants more fine-grained control of jenkins build ordering.


Comments

Popular posts from this blog

java - Suppress Jboss version details from HTTP error response -

gridview - Yii2 DataPorivider $totalSum for a column -

Sass watch command compiles .scss files before full sftp upload -