I have project https://github.com/patope/jenkins-pipeline-test having two branches: master and direct. On 'direct' pipeline is defined in Jenkinsfile file and on master Jenkinsfile uses shared pipeline.
Shared pipeline is defined in https://github.com/patope/jenkins-pipeline-test-shared
On branch 'direct' stage 'Build 2' is skipped correctly.
On branch 'master' (using shared pipeline) stage 'Build 2' is executed.
|Status||Open [ 1 ]||In Progress [ 3 ]|
|Summary||Declarative pipeline 'when' conditions do not work when using shared pipeline||Add support for defining Declarative pipelines in shared libraries|
|Issue Type||Bug [ 1 ]||New Feature [ 2 ]|
|Remote Link||This issue links to "PR #193 (Web Link)" [ 17668 ]|
|Status||In Progress [ 3 ]||In Review [ 10005 ]|
|Status||In Review [ 10005 ]||Resolved [ 5 ]|
|Resolution||Fixed [ 1 ]|