[JIRA] (JENKINS-41985) Pipeline documentation for the "when" closure is missing the "expression" closure

1 view
Skip to first unread message

mydoal@gmail.com (JIRA)

unread,
Feb 13, 2017, 10:09:01 AM2/13/17
to jenkinsc...@googlegroups.com
Roi Aldaag created an issue
 
Jenkins / Bug JENKINS-41985
Pipeline documentation for the "when" closure is missing the "expression" closure
Issue Type: Bug Bug
Assignee: Unassigned
Components: pipeline, pipeline-stage-step-plugin
Created: 2017/Feb/13 3:08 PM
Environment: In the documentation there is a missing "expression" closure nested in the "when" closure.

https://jenkins.io/doc/book/pipeline/syntax/

Under "Built in Conditions"

expression

Execute the stage when the specified Groovy expression evaluates to true, for example: when { return params.DEBUG_BUILD }


In the following link it is presented correctly:

https://jenkins.io/blog/2017/01/19/converting-conditional-to-pipeline/

when {
      // Only say hello if a "greeting" is requested
      expression { params.REQUESTED_ACTION == 'greeting' }
}
Priority: Minor Minor
Reporter: Roi Aldaag
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

andrew.bayer@gmail.com (JIRA)

unread,
Feb 13, 2017, 8:14:01 PM2/13/17
to jenkinsc...@googlegroups.com
Andrew Bayer updated an issue
Change By: Andrew Bayer
Component/s: pipeline-model-definition-plugin
Component/s: pipeline-stage-step-plugin

andrew.bayer@gmail.com (JIRA)

unread,
Feb 13, 2017, 8:14:01 PM2/13/17
to jenkinsc...@googlegroups.com
Andrew Bayer updated an issue
Change By: Andrew Bayer
Environment: In the documentation there is a missing "expression" closure nested in the "when" closure.

https://jenkins.io/doc/book/pipeline/syntax/

Under "Built in Conditions"

expression

Execute the stage when the specified Groovy expression evaluates to true, for example: when { return params.DEBUG_BUILD }


In the following link it is presented correctly:

https://jenkins.io/blog/2017/01/19/converting-conditional-to-pipeline/

when {
      // Only say hello if a "greeting" is requested
      expression { params.REQUESTED_ACTION == 'greeting' }
}

andrew.bayer@gmail.com (JIRA)

unread,
Feb 13, 2017, 8:15:02 PM2/13/17
to jenkinsc...@googlegroups.com
Andrew Bayer updated an issue
In the documentation there is a missing "expression" closure nested in the "when" closure.

https://jenkins.io/doc/book/pipeline/syntax/

Under "Built in Conditions"

expression

Execute the stage when the specified Groovy expression evaluates to true, for example: when { return params.DEBUG_BUILD }


In the following link it is presented correctly:

https://jenkins.io/blog/2017/01/19/converting-conditional-to-pipeline/

when {
      // Only say hello if a "greeting" is requested
      expression { params.REQUESTED_ACTION == 'greeting' }
}
Add Comment Add Comment
 

andrew.bayer@gmail.com (JIRA)

unread,
Feb 13, 2017, 8:15:02 PM2/13/17
to jenkinsc...@googlegroups.com

andrew.bayer@gmail.com (JIRA)

unread,
Feb 14, 2017, 12:29:01 PM2/14/17
to jenkinsc...@googlegroups.com

andrew.bayer@gmail.com (JIRA)

unread,
Feb 14, 2017, 12:29:02 PM2/14/17
to jenkinsc...@googlegroups.com

andrew.bayer@gmail.com (JIRA)

unread,
Feb 14, 2017, 12:29:02 PM2/14/17
to jenkinsc...@googlegroups.com
Andrew Bayer started work on Bug JENKINS-41985
 
Change By: Andrew Bayer
Status: Open In Progress

scm_issue_link@java.net (JIRA)

unread,
Feb 14, 2017, 1:57:02 PM2/14/17
to jenkinsc...@googlegroups.com

Code changed in jenkins
User: Andrew Bayer
Path:
content/doc/book/pipeline/syntax.adoc
http://jenkins-ci.org/commit/jenkins.io/7c9d265a78e6e19b7ab34e1bdbe5a31a015fe1f2
Log:
[FIXED JENKINS-41985] Fix when expression syntax

andrew.bayer@gmail.com (JIRA)

unread,
Feb 14, 2017, 2:00:01 PM2/14/17
to jenkinsc...@googlegroups.com

bitwiseman@gmail.com (JIRA)

unread,
Oct 22, 2019, 11:24:45 PM10/22/19
to jenkinsc...@googlegroups.com
Liam Newman closed an issue as Fixed
 

Bulk closing resolved issues.

Change By: Liam Newman
Status: Resolved Closed
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages