Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| jenkins-url | Yes | The URL of your Jenkins server | |
| jenkins-password | Yes | The password for Jenkins authentication | |
| jenkins-username | Yes | The username for Jenkins authentication |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| get_running_builds | Get all running builds from Jenkins Returns: list[dict]: A list of all running builds |
| get_build_info | Get specific build info from Jenkins Args: fullname: The fullname of the job build_number: The number of the build, if None, get the last build Returns: dict: The build info |
| get_build_sourcecode | Get the pipeline source code of a specific build in Jenkins Args: fullname: The fullname of the job build_number: The number of the build, if None, get the last build Returns: str: The source code of the build |
| build_job | Build a job in Jenkins Args: fullname: The fullname of the job parameters: Update the default parameters of the job. Returns: The queue item number of the job, only valid for about five minutes after the job completes |
| get_build_logs | Get logs from a specific build in Jenkins Args: fullname: The fullname of the job build_number: The number of the build pattern: A pattern to filter the logs limit: The maximum number of lines to retrieve seq: Priority order of log returns Returns: str: The logs of the build |
| stop_build | Stop a specific build in Jenkins Args: fullname: The fullname of the job build_number: The number of the build to stop |
| get_test_results | Get test results from a specific build in Jenkins Args: fullname: The fullname of the job build_number: The number of the build, if None, get the last build status_filter: Filter test cases by status. Can be one or more of: PASSED, SKIPPED, FAILED, FIXED, REGRESSION Returns: dict: The test results including pass/fail counts and detailed test case information |
| get_all_jobs | Get all jobs from Jenkins Returns: list[dict]: A list of all jobs |
| get_job_config | Get specific job config from Jenkins Args: fullname: The fullname of the job Returns: str: The config of the job |
| search_jobs | Search job by specific field Args: class_pattern: The pattern of the _class name_pattern: The pattern of the name fullname_pattern: The pattern of the fullname url_pattern: The pattern of the url color_pattern: The pattern of the color Returns: list[dict]: A list of all jobs |
| get_job_info | Get specific job info from Jenkins Args: fullname: The fullname of the job Returns: dict: The job info |
| get_multibranch_jobs | Get all multibranch pipeline jobs from Jenkins, optionally filtered by patterns Args: class_pattern: Optional regex pattern to filter by job class name_pattern: Optional regex pattern to filter by job name fullname_pattern: Optional regex pattern to filter by job fullname Returns: List[dict]: A list of multibranch pipeline jobs |
| get_multibranch_branches | Get all branches for a specific multibranch pipeline job Args: fullname: The fullname of the multibranch pipeline job Returns: List[dict]: A list of branch jobs within the multibranch pipeline |
| scan_multibranch_pipeline | Trigger a scan of a multibranch pipeline to discover new branches Args: fullname: The fullname of the multibranch pipeline job Returns: str: Status message indicating scan was triggered |
| get_all_nodes | Get all nodes from Jenkins Returns: list[dict]: A list of all nodes |
| get_node_config | Get node config from Jenkins Args: name: The name of the node Returns: str: The config of the node |
| get_all_queue_items | Get all items in Jenkins queue Returns: list[dict]: A list of all items in the Jenkins queue |
| get_queue_item | Get a specific item in Jenkins queue Args: id_: The id of the queue item Returns: dict: The queue item |
| cancel_queue_item | Cancel a specific item in Jenkins queue Args: id_: The id of the queue item |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |