jenkins_copy_job
Copies an existing Jenkins job to a new name with identical configuration, enabling quick duplication of builds, pipelines, or tasks without manual reconfiguration.
Instructions
Copy/clone an existing Jenkins job to a new name.
The new job will have identical configuration to the source.
Args: source_job: Name of the job to copy new_name: Name for the new job session_name: Jenkins session to use
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"source_job": "<source_job>",
"new_name": "<new_name>"
},
"name": "jenkins_copy_job"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| new_name | Yes | ||
| source_job | Yes | ||
| session_name | No | default |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |