[JIRA] (JENKINS-40339) Jenkins parallel pipeline: All subroutine calls in parameter blocks pass arguments from last block

2018-02-23 Thread andrew.ba...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Andrew Bayer resolved as Duplicate  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Fixed as part of JENKINS-26481  
 

  
 
 
 
 

 
 Jenkins /  JENKINS-40339  
 
 
  Jenkins parallel pipeline: All subroutine calls in parameter blocks pass arguments from last block   
 

  
 
 
 
 

 
Change By: 
 Andrew Bayer  
 
 
Status: 
 Open Resolved  
 
 
Resolution: 
 Duplicate  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, 

[JIRA] (JENKINS-40339) Jenkins parallel pipeline: All subroutine calls in parameter blocks pass arguments from last block

2018-02-23 Thread andrew.ba...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Andrew Bayer updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-40339  
 
 
  Jenkins parallel pipeline: All subroutine calls in parameter blocks pass arguments from last block   
 

  
 
 
 
 

 
Change By: 
 Andrew Bayer  
 
 
Component/s: 
 workflow-cps-plugin  
 
 
Component/s: 
 pipeline  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-40339) Jenkins parallel pipeline: All subroutine calls in parameter blocks pass arguments from last block

2016-12-09 Thread sascha.vuje...@ergodirekt.de (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Sascha Vujevic updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-40339  
 
 
  Jenkins parallel pipeline: All subroutine calls in parameter blocks pass arguments from last block   
 

  
 
 
 
 

 
Change By: 
 Sascha Vujevic  
 

  
 
 
 
 

 
 We are using a goovy-script in a parallel step and using  a  an  external method.am expecting the parameter value dumped in [aaa] to be 'aaa', not 'eee'.{code:java}def build_if_needed(project) {  println "build_if_needed: $project"  // ultimately this will kick off a build job...}parallel (  aaa : { build_if_needed('aaa')},  bbb : { build_if_needed('bbb')},  ccc : { build_if_needed('ccc')},  ddd : { build_if_needed('ddd')},  eee : { build_if_needed('eee')}){code}The result is:{code:java}[Pipeline] parallel[Pipeline] [aaa] { (Branch: aaa)[Pipeline] [bbb] { (Branch: bbb)[Pipeline] [ccc] { (Branch: ccc)[Pipeline] [ddd] { (Branch: ddd)[Pipeline] [eee] { (Branch: eee)[Pipeline] [aaa] echo[aaa] build_if_needed: eee[Pipeline] [aaa] }[Pipeline] [bbb] echo[bbb] build_if_needed: eee[Pipeline] [bbb] }[Pipeline] [ccc] echo[ccc] build_if_needed: eee[Pipeline] [ccc] }[Pipeline] [ddd] echo[ddd] build_if_needed: eee[Pipeline] [ddd] }[Pipeline] [eee] echo[eee] build_if_needed: eee[Pipeline] [eee] }[Pipeline] // parallel[Pipeline] End of PipelineFinished: SUCCESS{code}  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
  

[JIRA] (JENKINS-40339) Jenkins parallel pipeline: All subroutine calls in parameter blocks pass arguments from last block

2016-12-09 Thread sascha.vuje...@ergodirekt.de (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Sascha Vujevic updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-40339  
 
 
  Jenkins parallel pipeline: All subroutine calls in parameter blocks pass arguments from last block   
 

  
 
 
 
 

 
Change By: 
 Sascha Vujevic  
 

  
 
 
 
 

 
 We are using a goovy-script in a parallel step and using an external method. I am expecting the parameter value dumped in [aaa] to be 'aaa', not 'eee'.{code:java}def build_if_needed(project) {  println "build_if_needed: $project"  // ultimately this will kick off a build job...}parallel (  aaa : { build_if_needed('aaa')},  bbb : { build_if_needed('bbb')},  ccc : { build_if_needed('ccc')},  ddd : { build_if_needed('ddd')},  eee : { build_if_needed('eee')}){code}The result is:{code:java}[Pipeline] parallel[Pipeline] [aaa] { (Branch: aaa)[Pipeline] [bbb] { (Branch: bbb)[Pipeline] [ccc] { (Branch: ccc)[Pipeline] [ddd] { (Branch: ddd)[Pipeline] [eee] { (Branch: eee)[Pipeline] [aaa] echo[aaa] build_if_needed: eee[Pipeline] [aaa] }[Pipeline] [bbb] echo[bbb] build_if_needed: eee[Pipeline] [bbb] }[Pipeline] [ccc] echo[ccc] build_if_needed: eee[Pipeline] [ccc] }[Pipeline] [ddd] echo[ddd] build_if_needed: eee[Pipeline] [ddd] }[Pipeline] [eee] echo[eee] build_if_needed: eee[Pipeline] [eee] }[Pipeline] // parallel[Pipeline] End of PipelineFinished: SUCCESS{code}  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 

[JIRA] (JENKINS-40339) Jenkins parallel pipeline: All subroutine calls in parameter blocks pass arguments from last block

2016-12-09 Thread sascha.vuje...@ergodirekt.de (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Sascha Vujevic created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-40339  
 
 
  Jenkins parallel pipeline: All subroutine calls in parameter blocks pass arguments from last block   
 

  
 
 
 
 

 
Issue Type: 
  Bug  
 
 
Assignee: 
 Unassigned  
 
 
Components: 
 pipeline  
 
 
Created: 
 2016/Dec/09 2:52 PM  
 
 
Environment: 
 Jenkins version 2.35  
 
 
Labels: 
 pipeline  
 
 
Priority: 
  Minor  
 
 
Reporter: 
 Sascha Vujevic  
 

  
 
 
 
 

 
 We are using a goovy-script in a parallel step and using a external method. am expecting the parameter value dumped in [aaa] to be 'aaa', not 'eee'. 

 

def build_if_needed(project) {
  println "build_if_needed: $project"
  // ultimately this will kick off a build job...
}

parallel (
  aaa : { build_if_needed('aaa')},
  bbb : { build_if_needed('bbb')},
  ccc : { build_if_needed('ccc')},
  ddd : { build_if_needed('ddd')},
  eee : { build_if_needed('eee')}
)
 

 The result is: 

 

[Pipeline] parallel
[Pipeline] [aaa] { (Branch: aaa)
[Pipeline] [bbb] { (Branch: bbb)
[Pipeline] [ccc] { (Branch: ccc)
[Pipeline] [ddd] { (Branch: ddd)
[Pipeline] [eee] { (Branch: eee)
[Pipeline] [aaa] echo
[aaa] build_if_needed: eee
[Pipeline] [aaa] }
[Pipeline] [bbb]