locals {
  rti_jobs = {
    ama-backend = {
      name     = "ama-backend"
      http_url = "https://github.com/theorchard/ama-backend"
      ssh_url  = "git@github.com:theorchard/ama-backend.git"
      branches_to_build = [
        "master", "develop",
      ]
      disabled = false
    }
    ama-frontend = {
      name     = "ama-frontend"
      http_url = "https://github.com/theorchard/ama-frontend"
      ssh_url  = "git@github.com:theorchard/ama-frontend.git"
      branches_to_build = [
        "master", "development", "production-v*"
      ]
      jenkinsfile_branch = "development"
      disabled           = false
    }
    ama-performance-tests = {
      name     = "ama-performance-tests"
      http_url = "https://github.com/theorchard/ama-performance-tests"
      ssh_url  = "git@github.com:theorchard/ama-performance-tests.git"
      branches_to_build = [
        "master"
      ]
      jenkinsfile_branch = "master"
      disabled           = false
    }
    ama-website = {
      name     = "ama-website"
      http_url = "https://github.com/theorchard/ama-website"
      ssh_url  = "git@github.com:theorchard/ama-website.git"
      branches_to_build = [
        "master"
      ]
      jenkinsfile_branch = "master"
      disabled           = false
    }
    rti-amadeus = {
      name     = "rti-amadeus"
      http_url = "https://github.com/theorchard/rti-amadeus"
      ssh_url  = "git@github.com:theorchard/rti-amadeus.git"
      branches_to_build = [
        "master", "develop"
      ]
      disabled = false
    }
    rti-mobile-automation = {
      name     = "rti-mobile-automation"
      http_url = "https://github.com/theorchard/rti-mobile-automation"
      ssh_url  = "git@github.com:theorchard/rti-mobile-automation.git"
      branches_to_build = [
        "master", "develop"
      ]
      jenkinsfile_branch = "master"
      disabled           = false
    }
    rti-notifications-worker = {
      name     = "rti-notifications-worker"
      http_url = "https://github.com/theorchard/rti-notifications-worker"
      ssh_url  = "git@github.com:theorchard/rti-notifications-worker.git"
      branches_to_build = [
        "master", "develop"
      ]
      disabled = false
    }
    rti-user-preferences-service = {
      name     = "rti-user-preferences-service"
      http_url = "https://github.com/theorchard/rti-user-preferences-service"
      ssh_url  = "git@github.com:theorchard/rti-user-preferences-service.git"
      branches_to_build = [
        "master", "develop"
      ]
      disabled = false
    }
  }

  rti_schedule_jobs = {
    mon = {
      repository_name     = "infrastructure"
      job_name            = "MON"
      http_url            = "https://github.com/theorchard/infrastructure"
      ssh_url             = "git@github.com:theorchard/infrastructure.git"
      jenkinsfile_path    = "Jenkins/jobs/rti-schedule/mon.groovy"
      schedule_expression = "H 1 * * 1"

      disabled = false
    }
    tue = {
      repository_name     = "infrastructure"
      job_name            = "TUE"
      http_url            = "https://github.com/theorchard/infrastructure"
      ssh_url             = "git@github.com:theorchard/infrastructure.git"
      jenkinsfile_path    = "Jenkins/jobs/rti-schedule/tue.groovy"
      schedule_expression = "H 1 * * 2"

      disabled = false
    }
    wed = {
      repository_name     = "infrastructure"
      job_name            = "WED"
      http_url            = "https://github.com/theorchard/infrastructure"
      ssh_url             = "git@github.com:theorchard/infrastructure.git"
      jenkinsfile_path    = "Jenkins/jobs/rti-schedule/wed.groovy"
      schedule_expression = "H 1 * * 3"

      disabled = false
    }
    thu = {
      repository_name     = "infrastructure"
      job_name            = "THU"
      http_url            = "https://github.com/theorchard/infrastructure"
      ssh_url             = "git@github.com:theorchard/infrastructure.git"
      jenkinsfile_path    = "Jenkins/jobs/rti-schedule/thu.groovy"
      schedule_expression = "H 1 * * 4"

      disabled = false
    }
    fri = {
      repository_name     = "infrastructure"
      job_name            = "FRI"
      http_url            = "https://github.com/theorchard/infrastructure"
      ssh_url             = "git@github.com:theorchard/infrastructure.git"
      jenkinsfile_path    = "Jenkins/jobs/rti-schedule/fri.groovy"
      schedule_expression = "H 1 * * 5"

      disabled = false
    }
  }
}
