Details
-
New Feature
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
None
-
jenkins 2.76 and 2.60.3, pipeline model definition plugin 1.1.9
Description
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.
pipeline { agent any stages { stage('Build 1') { when { expression { true } } steps { echo('1') } } stage('Build 2') { when { expression { false } } steps { echo('2') } } stage('Build 3') { when { expression { true } } steps { echo('3') } } } }
Attachments
Issue Links
- is blocking
-
JENKINS-42730 declarative-linter don't work with shared library
-
- Open
-
- is duplicated by
-
JENKINS-46558 when expression is not validated when Jenkinsfile is loaded by other Jenkinsfile
-
- Closed
-
- relates to
-
JENKINS-63290 Cannot use function calls in shared library step
-
- Open
-
-
JENKINS-42224 Need ability to create reusable chunks of Declarative Pipeline
-
- Open
-
- links to
Code changed in jenkins
User: Andrew Bayer
Path:
content/doc/book/pipeline/shared-libraries.adoc
http://jenkins-ci.org/commit/jenkins.io/7009b1682960bdae12d5bfb54540dcff68529944
Log:
Preliminary doc update for
JENKINS-46547