-
Bug
-
Resolution: Duplicate
-
Major
-
Jenkins ver.: 1.641 deployed on Tomcat 7.0.41
Workflow plugins:
Workflow: Aggregator 1.12
Workflow: API 1.12
Workflow: Basic Steps 1.12
Workflow: Durable Task Step 1.12
Workflow: Execution Support 1.12
Workflow: Global Shared Library for CPS workflow 1.12
Workflow: Groovy CPS Execution 1.12
Workflow: Job 1.12
Workflow: Multibranch 1.12
Workflow: SCM Step 1.12
Workflow: Step API 1.12
OS: Windows 7
Web browser: WaterFox 40.1.0
Java: Oracle JDK 1.7.0 update 79Jenkins ver.: 1.641 deployed on Tomcat 7.0.41 Workflow plugins: Workflow: Aggregator 1.12 Workflow: API 1.12 Workflow: Basic Steps 1.12 Workflow: Durable Task Step 1.12 Workflow: Execution Support 1.12 Workflow: Global Shared Library for CPS workflow 1.12 Workflow: Groovy CPS Execution 1.12 Workflow: Job 1.12 Workflow: Multibranch 1.12 Workflow: SCM Step 1.12 Workflow: Step API 1.12 OS: Windows 7 Web browser: WaterFox 40.1.0 Java: Oracle JDK 1.7.0 update 79
I have strange problem with workflow script. My simple code look like:
def tab = [1, 2, 3, 4, 5] def five = tab.find{it==5} println five
The output of script is:
Started by user anonymous [Workflow] Allocate node : Start Running on master in D:\jenkins\jobs\example_workflow\workspace [Workflow] node { [Workflow] echo false [Workflow] } //node [Workflow] Allocate node : End [Workflow] End of Workflow Finished: SUCCESS
Why workflow returns boolean value? When I execute this script without workflow it show correct value:
5
- duplicates
-
JENKINS-26481 Mishandling of binary methods accepting Closure
- Resolved