Quantcast

[JIRA] (JENKINS-13871) Using "Conditional build step" and "Parameterized build step" in same step is preventing parallel executions of same job

classic Classic list List threaded Threaded
14 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-13871) Using "Conditional build step" and "Parameterized build step" in same step is preventing parallel executions of same job

JIRA noreply@jenkins-ci.org
Jacobo Jimenez created JENKINS-13871:
----------------------------------------

             Summary: Using "Conditional build step" and "Parameterized build step" in same step is preventing parallel executions of same job
                 Key: JENKINS-13871
                 URL: https://issues.jenkins-ci.org/browse/JENKINS-13871
             Project: Jenkins
          Issue Type: Bug
          Components: conditional-buildstep, parameterized-trigger, run-condition
    Affects Versions: current
         Environment: GNU/Linux x86_64 2.6.16.60-0.69.1-smp
Tomcat
            Reporter: Jacobo Jimenez
            Assignee: domi


Job A triggers a variable number of job B depending on a environment variable. It can be zero but since "Counter Parameter Factory" doesnt allow zero repetitions (Java exception) I had to include this step as a conditional build step. Job A must wait until the end of all B jobs so option "Block until the triggered projects finish their builds" is selected (because it is really a diamond execution).

This jobs configuration works fine but if you launch another A (in parallel) when it finish its first step and reach conditional step, it get stuck waiting until the end of all the jobs from first execution, once first A execution finished second execution continue executing its B jobs.

This is a kind of interlocking process between executions.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-13871) Using "Conditional build step" and "Parameterized build step" in same step is preventing parallel executions of same job

JIRA noreply@jenkins-ci.org

     [ https://issues.jenkins-ci.org/browse/JENKINS-13871?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacobo Jimenez updated JENKINS-13871:
-------------------------------------

    Attachment: QueueInterlockTest_main#config.xml
                QueueInterlockTest_subtask#config.xml

I have attached an example project with this problem, executable job is "QueueInterlockTest_main". To test this problem you must launch two executions of this job (in parallel), you will notice how second execution do not trigger "QueueInterlockTest_subtask" until first execution is finished.
               

> Using "Conditional build step" and "Parameterized build step" in same step is preventing parallel executions of same job
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: JENKINS-13871
>                 URL: https://issues.jenkins-ci.org/browse/JENKINS-13871
>             Project: Jenkins
>          Issue Type: Bug
>          Components: conditional-buildstep, parameterized-trigger, run-condition
>    Affects Versions: current
>         Environment: GNU/Linux x86_64 2.6.16.60-0.69.1-smp
> Tomcat
>            Reporter: Jacobo Jimenez
>            Assignee: domi
>              Labels: diamond, exception, interlock, parallel, parameter, stuck
>         Attachments: QueueInterlockTest_main#config.xml, QueueInterlockTest_subtask#config.xml
>
>
> Job A triggers a variable number of job B depending on a environment variable. It can be zero but since "Counter Parameter Factory" doesnt allow zero repetitions (Java exception) I had to include this step as a conditional build step. Job A must wait until the end of all B jobs so option "Block until the triggered projects finish their builds" is selected (because it is really a diamond execution).
> This jobs configuration works fine but if you launch another A (in parallel) when it finish its first step and reach conditional step, it get stuck waiting until the end of all the jobs from first execution, once first A execution finished second execution continue executing its B jobs.
> This is a kind of interlocking process between executions.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-13871) Using "Conditional build step" and "Parameterized build step" in same step is preventing parallel executions of same job

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

     [ https://issues.jenkins-ci.org/browse/JENKINS-13871?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacobo Jimenez updated JENKINS-13871:
-------------------------------------

    Due Date:     (was: 18/May/12)
   

> Using "Conditional build step" and "Parameterized build step" in same step is preventing parallel executions of same job
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: JENKINS-13871
>                 URL: https://issues.jenkins-ci.org/browse/JENKINS-13871
>             Project: Jenkins
>          Issue Type: Bug
>          Components: conditional-buildstep, parameterized-trigger, run-condition
>    Affects Versions: current
>         Environment: GNU/Linux x86_64 2.6.16.60-0.69.1-smp
> Tomcat
>            Reporter: Jacobo Jimenez
>            Assignee: domi
>              Labels: diamond, exception, interlock, parallel, parameter, stuck
>         Attachments: QueueInterlockTest_main#config.xml, QueueInterlockTest_subtask#config.xml
>
>
> Job A triggers a variable number of job B depending on a environment variable. It can be zero but since "Counter Parameter Factory" doesnt allow zero repetitions (Java exception) I had to include this step as a conditional build step. Job A must wait until the end of all B jobs so option "Block until the triggered projects finish their builds" is selected (because it is really a diamond execution).
> This jobs configuration works fine but if you launch another A (in parallel) when it finish its first step and reach conditional step, it get stuck waiting until the end of all the jobs from first execution, once first A execution finished second execution continue executing its B jobs.
> This is a kind of interlocking process between executions.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-13871) Using "Conditional build step" and "Parameterized build step" in same step is preventing parallel executions of same job

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

We are experiencing the same problem in our automated regression test system built on Jenkins and are looking for a solution for this one to be able to parallelize our job execution. Is there anything I could help in terms of diagnosing the issue? The description from Jacobo looks exhaustive, though...

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-13871) Using "Conditional build step" and "Parameterized build step" in same step is preventing parallel executions of same job

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
Kevin Chiu commented on Bug JENKINS-13871

Same issue here. This is a very common case for worklfows that want to have a better utilization of nodes with the same type.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-13871) Using "Conditional build step" and "Parameterized build step" in same step is preventing parallel executions of same job

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
 
Kevin Chiu edited a comment on Bug JENKINS-13871

Same issue here. This is a also a very common case for common step for workflows in which multiple instants of job will be executed on the node.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-13871) Using "Conditional build step" and "Parameterized build step" in same step is preventing parallel executions of same job

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
 
Kevin Chiu edited a comment on Bug JENKINS-13871

Same issue here. This is also a very common case when common/shared step is created for workflows in which multiple instants of job will be executed on the node.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-13871) Using "Conditional build step" and "Parameterized build step" in same step is preventing parallel executions of same job

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
 
Kevin Chiu edited a comment on Bug JENKINS-13871

Same issue here. This is also a very common case when commonly used step is created for workflows in which multiple instants of job will be executed on the same node.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-13871) Using "Conditional build step" and "Parameterized build step" in same step is preventing parallel executions of same job

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
Peter S commented on Bug JENKINS-13871

I've got this problem too, but with wrapped "execute nant target" build step inside conditional section.
The steps to reproduce issue is next

  • Install node-label plugin, which allows to target build executon on some exact node.
  • Create job, configure single conditional step with wrapped long executable task(groovy script while(true){} fits maybe).
  • Allow concurrent builds for this job.
  • Make job parametrized, configure node-label parameter, with allowed two nodes to run this job
  • Run job on first node, after that run job on another node.
  • Console Output shows that second run hangs execution before conditional step
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-13871) Using "Conditional build step" and "Parameterized build step" in same step is preventing parallel executions of same job

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
Kevin Chiu commented on Bug JENKINS-13871

Turns out the blocking I encountered is due to the post-build steps of a concurrent tasks. It seems to be a more general one on plugins that do artifcats copy/upload:

https://issues.jenkins-ci.org/browse/JENKINS-10234?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Before we are using copy artifacts back to master, now have changed to use the Publish over SSH plugin instead. Tested concurrent build couple of times and issue gone.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-13871) Using "Conditional build step" and "Parameterized build step" in same step is preventing parallel executions of same job

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
 
Kevin Chiu edited a comment on Bug JENKINS-13871

Turns out the blocking I encountered is due to the post-build steps of a concurrent tasks. It seems to be a more general one on plugins that do artifcats copy/upload:

JENKINS-10234

Before we are using copy artifacts back to master, now have changed to use the Publish over SSH plugin instead. Tested concurrent build couple of times and issue gone.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-13871) Using "Conditional build step" and "Parameterized build step" in same step is preventing parallel executions of same job

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
Peter S commented on Bug JENKINS-13871
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-13871) Using "Conditional build step" and "Parameterized build step" in same step is preventing parallel executions of same job

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

Code changed in jenkins
User: advantiss
Path:
src/main/java/org/jenkinsci/plugins/conditionalbuildstep/singlestep/SingleConditionalBuilder.java
http://jenkins-ci.org/commit/conditional-buildstep-plugin/96a6b5e0f4de783bfd1f264852397d270268a977
Log:
[Fixed JENKINS-13871] respects wrapped build step

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-13871) Using "Conditional build step" and "Parameterized build step" in same step is preventing parallel executions of same job

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
domi resolved Bug JENKINS-13871 as Fixed

fixed with 1.2.1

Change By: domi (16/Mar/13 11:55 AM)
Status: Open Resolved
Resolution: Fixed
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
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 [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Loading...