The Jenkins MCP server now uses a configurable diagnostic parameters system to eliminate hard-coded values in the diagnose_build_failure tool. All diagnostic behavior can now be customized through the diagnostic-parameters.yml configuration file.
- Complete Parameter Guide - Comprehensive documentation with examples and real-world configurations
- Quick Reference - Condensed reference for common parameters and quick fixes
- Primary:
/config/diagnostic-parameters.yml - Module:
jenkins_mcp_enterprise/diagnostic_config/
- Search query patterns for failure analysis
- Result limits and scoring thresholds
- Content preview lengths
- Failure pattern detection rules
- Fallback analysis parameters
- Pattern matching limits
- Regex capture groups for data extraction
- Dynamic message templates with interpolation
- Named and numbered group support
- Performance-optimized pattern compilation
- Pattern-based recommendation mappings with smart data extraction
- Priority job identification
- Investigation guidance text
- Template-based dynamic message generation
- Parallel processing limits
- Chunk analysis parameters
- Token management
- Hierarchy visualization settings
- Status formatting rules
- Content truncation rules
The diagnostic parameters are automatically loaded from the bundled configuration:
from jenkins_mcp_enterprise.diagnostic_config import get_diagnostic_config
config = get_diagnostic_config()
search_queries = config.get_semantic_search_queries()
failure_patterns = config.get_failure_patterns()
recommendations = config.get_pattern_recommendations()export JENKINS_MCP_DIAGNOSTIC_CONFIG="/path/to/custom-diagnostic-parameters.yml"
python3 -m jenkins_mcp_enterprise.serverpython3 -m jenkins_mcp_enterprise.server --diagnostic-config /path/to/custom-diagnostic-parameters.ymlPlace your custom diagnostic-parameters.yml in the project's config/ directory to automatically override the bundled defaults.
- Flexibility: All diagnostic behavior is now configurable
- Maintainability: No more hard-coded values scattered through the code
- Customization: Different environments can use different diagnostic parameters
- Hot-reload: Configuration can be reloaded without restart
- Extensibility: Easy to add new configuration parameters
All hard-coded values from the original diagnose_build_failure tool have been extracted to the YAML configuration:
- Semantic search queries (9 patterns)
- Failure pattern recognition (7 patterns)
- Recommendation mappings (6 categories)
- Regex pattern support with capture groups and message templates
- Processing limits and thresholds
- Display formatting rules
- Investigation guidance text
The system now supports advanced regex patterns for automated data extraction:
- Named Capture Groups: Extract specific data using
(?P<name>pattern)syntax - Message Templates: Dynamic message generation with
{captured_group}placeholders - Backward Compatibility: Existing string patterns continue to work unchanged
- Performance Optimization: Compiled regex patterns are cached for efficiency
- Error Handling: Invalid patterns are logged but don't break the system
from jenkins_mcp_enterprise.diagnostic_config import reload_diagnostic_config
reload_diagnostic_config() # Reload without server restart- Start with the Quick Reference for immediate configuration needs
- Read the Complete Guide for detailed parameter explanations and examples
- Customize your configuration based on your technology stack and environment
- Test changes in a development environment before deploying to production
For questions about configuration parameters or troubleshooting, refer to the comprehensive documentation or check the debugging section in the complete guide.