locals {
  atlas_jobs = {
    atlas-auth-proxy = {
      name     = "atlas-auth-proxy"
      http_url = "https://github.com/theorchard/atlas-auth-proxy"
      ssh_url  = "git@github.com:theorchard/atlas-auth-proxy.git"
      branches_to_build = [
        "master", "develop"
      ]
      disabled = false
    }
    atlas-um = {
      name     = "atlas-um"
      http_url = "https://github.com/theorchard/atlas-um"
      ssh_url  = "git@github.com:theorchard/atlas-um.git"
      branches_to_build = [
        "master", "develop"
      ]
      disabled = false
    }
    atlas-um-integration-example = {
      name     = "atlas-um-integration-example"
      http_url = "https://github.com/theorchard/atlas-um-integration-example"
      ssh_url  = "git@github.com:theorchard/atlas-um-integration-example.git"
      branches_to_build = [
        "master", "develop"
      ]
      disabled = false
    }
    core-images = {
      name     = "core-images"
      http_url = "https://github.com/theorchard/core-images"
      ssh_url  = "git@github.com:theorchard/core-images.git"
      branches_to_build = [
        "master", "develop"
      ]
      disabled = false
    }
    core-notifications = {
      name     = "core-notifications"
      http_url = "https://github.com/theorchard/core-notifications"
      ssh_url  = "git@github.com:theorchard/core-notifications.git"
      branches_to_build = [
        "master", "develop"
      ]
      disabled = false
    }
    core-reporting = {
      name     = "core-reporting"
      http_url = "https://github.com/theorchard/core-reporting"
      ssh_url  = "git@github.com:theorchard/core-reporting.git"
      branches_to_build = [
        "master", "develop"
      ]
      disabled = false
    }
    core-load-tester = {
      name     = "core-load-tester"
      http_url = "https://github.com/theorchard/core-load-tester"
      ssh_url  = "git@github.com:theorchard/core-load-tester.git"
      branches_to_build = [
        "master"
      ]
      jenkinsfile_branch = "master"
      disabled           = false
    }
    core-load-tester-email-lambda = {
      name     = "core-load-tester-email-lambda"
      http_url = "https://github.com/theorchard/core-load-tester-email-lambda"
      ssh_url  = "git@github.com:theorchard/core-load-tester-email-lambda.git"
      branches_to_build = [
        "master"
      ]
      jenkinsfile_branch = "master"
      disabled           = false
    }
    flask-atlas-auth = {
      name     = "flask-atlas-auth"
      http_url = "https://github.com/theorchard/flask-atlas-auth"
      ssh_url  = "git@github.com:theorchard/flask-atlas-auth.git"
      branches_to_build = [
        "master", "develop"
      ]
      disabled = false
    }
    thousand-playlists = {
      name             = "1000-playlists"
      http_url         = "https://github.com/theorchard/atlas-scripts"
      ssh_url          = "git@github.com:theorchard/atlas-scripts.git"
      jenkinsfile_path = "1000-playlists/Jenkinsfile"

      branches_to_build = [
        "master", "develop"
      ]
      disabled = false
    }
    cross-product-documentation-root = {
      name             = "cross-product-documentation-root"
      http_url         = "https://github.com/theorchard/cross-product-documentation-root"
      ssh_url          = "git@github.com:theorchard/cross-product-documentation-root.git"
      jenkinsfile_path = "Jenkinsfile"

      branches_to_build = [
        "master", "develop"
      ]
      disabled = false
    }
  }

  atlas_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/atlas-schedule/everyday.groovy"
      schedule_expression = "H 6 * * *"

      disabled = false
    }
  }
}
