-
Improvement
-
Resolution: Fixed
-
Minor
-
None
-
Jenkins:2.61, pipeline-model-definition: 1.1.4
-
-
Pipeline - December
In previous versions of Jenkins Pipeline, each stage's "where" clause would evaluate quickly, not requiring an allocated node to see if its stage needed to be run. Suddenly, we see Jenkins allocating the stage's node to evaluate the "where" clause for each stage. Allocating nodes for us is fairly expensive and we want to avoid this if the where clause stipulates the stage won't run.
- is duplicated by
-
JENKINS-66796 Matrix command in Declarative Pipeline does not filter nodes correctly.
-
- Open
-
-
JENKINS-46693 When condition requires executor allocation
-
- Closed
-
- links to
Yeah this is pretty disappointing. It would be interesting to know how often 'when' clauses require node processing. It seems like this would be the exception.
How does this get processed? Could there be something like a "requireNodeAllocation: true" in the when {} block, or has the ship sailed by the time that would get evaluated?