Issue Type: Bug Bug
Assignee: Jesse Glick
Components: workflow-plugin
Created: 20/Feb/15 2:27 PM
Description:

I manage to create a simple workflow that can show that the `concurrency:1` on stages has an issue:

```
import java.util.Random

def waiter(max) {
def rand = new Random()
def time = rand.nextInt(Integer.parseInt("${max}")+1)
echo "Waiting for ${time} seconds..."
sh "sleep ${time}s"
echo "You get served.."
}

stage name:'build', concurrency: 1
node { waiter(10) }

stage name:'concurrent', concurrency:1
node { waiter(20) }

stage name: 'deploy', concurrency: 1
node { waiter(30) }
```

To reproduce it:

1. Launch 2 instances of the workflow. The first will start, the second will wait the first one to leave the stage build.
2. When the first one leave the stage build, start a new instance of the workflow

The third instance will not wait the second instance to leave the stage build before starting.

Project: Jenkins
Priority: Major Major
Reporter: Adrien Lecharpentier
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to