# 环境分发配置
environments:
  dev:
    branches: ["dev", "develop", "development", "feature/*"]
    jenkins_job: "alpha-build"
    jenkins_url: "https://jenkins-alpha.freeleaps.com"
    priority: 2
    
  prod:
    branches: ["prod", "production", "main", "master", "release/*"]
    jenkins_job: "production-build"
    jenkins_url: "https://jenkins-prod.freeleaps.com"
    priority: 1
    
  staging:
    branches: ["staging", "stage", "pre-prod"]
    jenkins_job: "staging-build"
    jenkins_url: "https://jenkins-staging.freeleaps.com"
    priority: 3
    
  default:
    branches: ["*"]
    jenkins_job: "default-build"
    jenkins_url: "https://jenkins-default.freeleaps.com"
    priority: 4

# 防抖配置
deduplication:
  enabled: true
  window_seconds: 300  # 5分钟防抖窗口
  strategy: "commit_branch"  # commit_hash + branch
  cache_ttl: 3600  # 缓存1小时

# 队列配置
queue:
  max_concurrent: 10
  max_retries: 3
  retry_delay: 60  # 秒
  priority_levels: 4 