### Jenkins / plugins
- **Jenkins**: 2.541.2
- **MCP Server plugin**: MCP Server Plugin 0.158.v8e18e64dd93c
- **List Git Branches Parameter plugin** : List Git Branches Parameter PlugIn 0.0.13
### Summary
When calling the MCP tool `triggerBuild` with a `parameters` map that includes the **List Git Branches** parameter (e.g. `TAG`), the build is queued successfully, but the resulting run’s `ParametersAction` **does not contain** that parameter. Only parameters that map to “core” types (e.g. `StringParameterValue` for choice, `BooleanParameterValue`) appear.
This contradicts the [plugin documentation](https://plugins.jenkins.io/mcp-server/) stating that *Plugin Parameters* are *automatically detected and handled* and that unsupported parameters *fall back to defaults with logging* — in our case `TAG` seems to be dropped silently (no `ListGitBranchesParameterValue` in the build).
### Job configuration (high level)
- Job type: **Pipeline** (`WorkflowJob`), parameterized.
- Parameters include:
- `APP_ENV` — **Choice**
- `TAG` — **List Git Branches (and more)** (`PT_BRANCH_TAG` / `ListGitBranchesParameterDefinition`)
- `BUILD_ONLY`, `ROLLBACK` — **Boolean**
### Steps to reproduce
1. Create or use a parameterized pipeline job with a **List Git Branches Parameter** named e.g. `TAG`.
2. Call MCP `triggerBuild` with JSON similar to:
```json
{
"jobFullName": "<folder>/<job>",
"parameters": {
"APP_ENV": "qa1",
"TAG": "refs/heads/FEATURE-EFF-xxxxxxx",
"BUILD_ONLY": false,
"ROLLBACK": false
}
}
Thank you for looking into this.
What feature do you want to see added?
.../api/json?tree=actions[parameters[name,value,_class]]).actions→ParametersAction→parameters.Expected behavior
TAG(e.g.ListGitBranchesParameterValueor equivalent), matching the string passed inparameters.TAG, consistent with Build with Parameters in the UI and withPOST .../buildWithParameters(form fieldTAG=...).Actual behavior
triggerBuildreturns success and the build runs, butTAGis missing fromParametersAction.APP_ENV,BUILD_ONLY,ROLLBACK.paramsstring also omitsTAG(only the three above).Additional context
POST .../buildWithParameterswithapplication/x-www-form-urlencodedincludingTAG=...works and the run shows the branch/tag parameter correctly.Suggested direction
triggerBuildbuilds the same parameter set asbuildWithParametersfor allParameterDefinitiontypes registered on the job, including third-party List Git Branches /PT_BRANCH_TAG.Thank you for looking into this.
Upstream changes
No response
Are you interested in contributing this feature?
No response