Sdílet prostřednictvím


steps.downloadBuild – definice

Krok downloadBuild stáhne artefakty sestavení.

steps:
- downloadBuild: string # Required as first property. Alias of the build resource.
  artifact: string # Artifact name.
  path: string # Path to download the artifact into.
  patterns: string # Downloads the files which matches the patterns.
  condition: string # Evaluate this condition expression to determine whether to run this task.
  continueOnError: boolean # Continue running even on failure?
  displayName: string # Human-readable name for the task.
  target: string | target # Environment in which to run this task.
  enabled: boolean # Run this task when the job runs?
  env: # Variables to map into the process's environment.
    string: string # Name/value pairs
  name: string # ID of the step.
  timeoutInMinutes: string # Time to wait for this task to complete before the server kills it.
  retryCountOnTaskFailure: string # Number of retries if the task fails.
steps:
- downloadBuild: string # Required as first property. Alias of the build resource.
  artifact: string # Artifact name.
  path: string # Path to download the artifact into.
  patterns: string # Downloads the files which matches the patterns.
  condition: string # Evaluate this condition expression to determine whether to run this task.
  continueOnError: boolean # Continue running even on failure?
  displayName: string # Human-readable name for the task.
  target: string | target # Environment in which to run this task.
  enabled: boolean # Run this task when the job runs?
  env: # Variables to map into the process's environment.
    string: string # Name/value pairs
  name: string # ID of the step.
  timeoutInMinutes: string # Time to wait for this task to complete before the server kills it.

Definice, které odkazují na tuto definici: kroky

Vlastnosti

downloadBuild řetězec. Povinné jako první vlastnost.
ID prostředku sestavení.

artifact řetězec.
název artefaktu.

path řetězec.
Cesta ke stažení artefaktu.

patterns řetězec.
stáhne soubory, které odpovídají vzorům.

condition řetězec.
Vyhodnocení tohoto výrazu podmínky k určení, zda má být spuštěna tato úloha.

continueOnError logických.
Pokračovat i při selhání?

displayName řetězec.
název úkolu čitelný pro člověka.

target cílové.
prostředí, ve kterém chcete tuto úlohu spustit.

enabled logických.
Spustit tuto úlohu při spuštění úlohy?

env řetězcový slovník.
proměnné pro mapování do prostředí procesu.

name řetězec.
ID kroku. Přijatelné hodnoty: [-_A-Za-z0-9]*.

timeoutInMinutes řetězec.
Doba čekání na dokončení této úlohy před ukončením serveru.

Poznámka:

Kanály můžou být nakonfigurované s vypršením časového limitu na úrovni úlohy. Pokud časový limit na úrovni úlohy uplynul před dokončením kroku, je spuštěná úloha (včetně kroku) ukončena, i když je krok nakonfigurovaný s delším timeoutInMinutes intervalem. Další informace najdete v tématu vypršení časových limitů.

retryCountOnTaskFailure řetězec.
Počet opakování, pokud úloha selže.

Poznámky

Klíčové slovo downloadBuild je zástupcem úlohy Stáhnout artefakty sestavení.

Poznámka:

Tým kanálů doporučuje upgrade z downloadBuild (úloha stažení artefaktů sestavení) na stažení (úloha stažení artefaktů kanálu), aby se zrychlil výkon.

Viz také