jenkinsci / jenkinsci/parameterized-trigger-plugin

[JENKINS-60765] Parameterized trigger blocks executors

Open
#776 3 comments 0 reactions 0 assignees View on GitHub
component:parameterized-trigger-plugin imported-jira-issue priority:minor resolution:unresolved
Dominant language
Java
Stars
77
Forks
174
Avg merge
22h 27m
Merged PRs (30d)
1

Description

In Freestyle job, the "Trigger parameterized build on other projects" step in Post-build Actions seems to block an executor until the triggered downstream job starts. This creates a situation, where using this plugin might lead to deadlock, which can only be resolved by cancelling the step. 

For instance, I have 4 available executors. I schedule 4 jobs to run at the same time, all of which have a parameterized trigger in post-build actions. Once any job is finished, it attempts to trigger its downstream project, however since there are no free executors available, the downstream project is simply moved to the build queue. This prevents the upstream project from ever releasing the executor, which results in a deadlock. I'm not sure if this is intended behaviour, however this makes the plugin unusable when applied to multiple projects. Here's what it looks like:

---
Originally reported by kmagomedov, imported from: Parameterized trigger blocks executors


  • status: Open
  • priority: Minor
  • component(s): parameterized-trigger-plugin
  • label(s): deadlock, executors, lock, parameterized-trigger
  • resolution: Unresolved
  • votes: 1
  • watchers: 2
  • imported: 2025-12-07

Raw content of original issue

In Freestyle job, the "Trigger parameterized build on other projects" step in Post-build Actions seems to block an executor until the triggered downstream job starts. This creates a situation, where using this plugin might lead to deadlock, which can only be resolved by cancelling the step. 
For instance, I have 4 available executors. I schedule 4 jobs to run at the same time, all of which have a parameterized trigger in post-build actions. Once any job is finished, it attempts to trigger its downstream project, however since there are no free executors available, the downstream project is simply moved to the build queue. This prevents the upstream project from ever releasing the executor, which results in a deadlock. I'm not sure if this is intended behaviour, however this makes the plugin unusable when applied to multiple projects. Here's what it looks like:

environment

```
Jenkins ver. 2.204.1

Parameterized Trigger plugin ver. 2.35.2
```

1 attachment

- [Deadlock.png](https://issues.jenkins.io/secure/attachment/49982/Deadlock.png)
> ![Deadlock.png](https://issues.jenkins.io/secure/attachment/49982/Deadlock.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.