variable "folder" {
  type        = string
  description = "The folder namespace to store the job in."
  default     = ""
}

variable "github_api_url" {
  type        = string
  description = "Gtihub API url."
  default     = "https://api.github.com"
}

variable "github_credentials_id" {
  type        = string
  description = "Github SCM credentials id."
  default     = "orchardci-user-token"
}

variable "github_repository_owner" {
  type        = string
  description = "Github repository owner."
  default     = "theorchard"
}

variable "github_repository_name" {
  type        = string
  description = "Gtihub repository name."
}

variable "github_repository_http_url" {
  type        = string
  description = "Github repository HTTP url."
}

variable "github_repository_ssh_url" {
  type        = string
  description = "Github repository SSH url."
}

variable "github_ssh_credentials_id" {
  type        = string
  description = "Github SSH credentials."
  default     = "theorchard-ci-ssh-key"
}

variable "github_repository_branches_to_build" {
  type        = list(string)
  description = "Github repository branches to build."
  default     = []
}

variable "jenkins_job_name" {
  type        = string
  description = "Job name, default to repository name."
  default     = ""
}

variable "jenkinsfile_path" {
  type        = string
  description = "Path to Jenkinsfile"
  default     = "Jenkinsfile"
}

variable "jenkinsfile_branch" {
  type        = string
  description = "Branch with Jenkinsfile"
  default     = "develop"
}

variable "jenkinsfile_match_branches" {
  type        = bool
  description = "Looks for Jenkinsfile in matching branch"
  default     = false
}

variable "disabled" {
  type        = bool
  description = "Enable or disable job."
  default     = false
}

variable "discover_tags" {
  type        = bool
  description = "Enable or disable tags discovery."
  default     = false
}
