On Mon, Mar 7, 2016 at 12:44 PM, John McGehee <
jmcge...@gmail.com> wrote:
> I have developed a Jenkins plugin that runs jobs on Sun Grid Engine (SGE).
As an aside (not meaning to derail the hosting request!): it might be
valuable to have a corresponding Pipeline step to submit the batch job
and await its completion¹, ideally streaming logs if the engine makes
that possible. After all, it is silly to have a freestyle project
which allocates and locks an executor on some node—intended to signify
that it is *using* that computer for a build—only to make an API call
to a grid engine and then go to sleep for hours. In a Pipeline script,
you can allocate an executor with the `node {}` block step, but you
can also run steps outside of such a block without necessarily
consuming any resources. Furthermore, Jenkins can be restarted while
that Pipeline build is in the middle of an asynchronous step, without
interrupting the Jenkins build or forcing it to be treated as a
failure; it will just resume waiting for the grid engine to finish.
¹Reference:
https://github.com/jenkinsci/workflow-plugin/blob/master/step-api/README.md#creating-an-asynchronous-step