locals {
  dna_jobs = {
    dna-web = {
      name     = "dna-web"
      http_url = "https://github.com/theorchard/dna-web"
      ssh_url  = "git@github.com:theorchard/dna-web.git"
      branches_to_build = [
        "production", "development", "qa", "uat"
      ]
      jenkinsfile_branch = "development"
      disabled           = true
    }
    dna-api = {
      name     = "dna-api"
      http_url = "https://github.com/theorchard/dna-api"
      ssh_url  = "git@github.com:theorchard/dna-api.git"
      branches_to_build = [
        "master", "develop"
      ]
      disabled = true
    }
    dna-search-index-init = {
      name     = "dna-search-index-init"
      http_url = "https://github.com/theorchard/dna-search-index-init"
      ssh_url  = "git@github.com:theorchard/dna-search-index-init.git"
      branches_to_build = [
        "master", "develop"
      ]
      disabled = true
    }
    dna-etl-data-ingest-scheduled-service = {
      name     = "dna-etl-data-ingest-scheduled-service"
      http_url = "https://github.com/theorchard/dna-etl-data-ingest-scheduled-service"
      ssh_url  = "git@github.com:theorchard/dna-etl-data-ingest-scheduled-service.git"
      branches_to_build = [
        "master", "develop"
      ]
      disabled = true
    }
    dna-qa-automation = {
      name     = "dna-qa-automation"
      http_url = "https://github.com/theorchard/dna-qa-automation"
      ssh_url  = "git@github.com:theorchard/dna-qa-automation.git"
      branches_to_build = [
        "master"
      ]
      jenkinsfile_branch = "master"
      disabled           = true
    }
    dna-cms = {
      name     = "dna-cms"
      http_url = "https://github.com/theorchard/dna-cms"
      ssh_url  = "git@github.com:theorchard/dna-cms.git"
      branches_to_build = [
        "master", "develop"
      ]
      jenkinsfile_branch = "develop"
      disabled           = true
    }
  }

  dna_schedule_jobs = {
    mon_sun = {
      repository_name     = "infrastructure"
      job_name            = "MON-SUN"
      http_url            = "https://github.com/theorchard/infrastructure"
      ssh_url             = "git@github.com:theorchard/infrastructure.git"
      jenkinsfile_path    = "Jenkins/jobs/dna-schedule/everyday.groovy"
      schedule_expression = "H 4 * * *"

      disabled = true
    }
  }
}
