Hi all.
I have 2 jobs let's say job1, job2 on my Jenkins instance which i want to exclude from running at the same time, on the same node.
I have configured job1 to block on node level when a build of job2 is happening.
I have scheduled job2 to run every 2 mins on a specific node and job1 every minute on that same node.
What i see is the job1 is triggered normally while job2 is already building on the same node.
What's more interesting is that this does not happen when i set the blocking level to global.
This seems to me like a bug on the plugin.
job1
```
node("${agent}") {
stage('stage 1') {
echo 'Hi there'
sh 'sleep 2'
}
stage('stage 2') {
echo 'stage 2'
}
}
```
job2
```
node("${agent}") {
stage('stage 1') {
echo 'Hi there'
sh 'sleep 3m'
}
stage('stage 2') {
echo 'stage 2'
}
}
```