I would like to execute 2 stages on 2 different nodes. First stage should be executed always, and the second under a certain condition.
Everything works, except that when the second stage is not executed (the 'when' expression is not satisfied), a checkout of the repository is still done.
This is the Jenkinsfile:
The big problem with this is that in case the 'node_2' is executing other jobs, the current job cannot continue until this node has a free executor.
|Field||Original Value||New Value|
|Labels||checkout declarative pipeline||checkout declarative multibranch pipeline|
|Component/s||pipeline-model-definition-plugin [ 21706 ]|
|Assignee||Denis Saponenko [ vaimr ]||Andrew Bayer [ abayer ]|
|Resolution||Fixed [ 1 ]|
|Status||Open [ 1 ]||Resolved [ 5 ]|
|Status||Resolved [ 5 ]||Closed [ 6 ]|