On Thu, Feb 6, 2020 at 8:10 AM Tomasz Markiewicz
<
tomasz.g....@gmail.com> wrote:
> I was wondering if it is possible to "integrate" heavy-job-plugin functionality into pipeline projects.
Not easily. See JENKINS-41940. The non-Pipeline functionality relies
on a core API (`JobProperty.getSubTasks`) which I am guessing was
created for this express purpose. Pipeline actually does call this
API, but it is not useful in that context since executors are
allocated programmatically zero or more times via a step, as opposed
to traditional builds which are statically associated with one
executor. You would have to either duplicate all of `ExecutorStep`
with an added `weight` parameter, or find a way to cleanly inject this
subtask override into the existing implementation, or find an
alternative design that does not rely on subtasks.