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'
    }
}
```

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CADCvpUcmEYZDQHPLnfa8jFmzdXjaj0VYXf%3DTjSqO8rZJCcyEGA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to