Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
jenkins-urlYesThe URL of your Jenkins server
jenkins-passwordYesThe password for Jenkins authentication
jenkins-usernameYesThe username for Jenkins authentication

Tools

Functions exposed to the LLM to take actions

NameDescription
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

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/lanbaoshen/mcp-jenkins'

If you have feedback or need assistance with the MCP directory API, please join our Discord server