steps.download definition

Im download Schritt werden Artefakte heruntergeladen, die der aktuellen Ausführung oder aus einer anderen Azure-Pipeline zugeordnet sind, die als Pipelineressource zugeordnet ist.

steps:
- download: string # Required as first property. Specify current, pipeline resource identifier, or none to disable automatic download.
  artifact: string # Artifact name.
  patterns: string # Pattern to download files from artifact.
  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:
- download: string # Required as first property. Specify current, pipeline resource identifier, or none to disable automatic download.
  artifact: string # Artifact name.
  patterns: string # Pattern to download files from artifact.
  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.
steps:
- download: string # Required as first property. Specify current, pipeline resource identifier, or none to disable automatic download.
  artifact: string # Artifact name.
  patterns: string # Pattern to download files from artifact.
  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.
  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.

Definitionen, die auf diese Definition verweisen: Schritte

Eigenschaften

download Schnur. Erforderlich als erste Eigenschaft.
Geben Sie aktuelle, Pipelineressourcenbezeichner oder keine an, um den automatischen Download zu deaktivieren.

artifact Schnur.
Artefaktname.

patterns Schnur.
Muster zum Herunterladen von Dateien aus dem Artefakt.

condition Schnur.
Werten Sie diesen Bedingungsausdruck aus, um zu bestimmen, ob dieser Task ausgeführt werden soll.

continueOnErrorBoolescher Wert.
Die Ausführung auch bei Einem Fehler fortsetzen?

displayName Schnur.
Lesbarer Name für die Aufgabe.

targettarget.
Umgebung, in der dieser Task ausgeführt werden soll.

enabledBoolescher Wert.
Führen Sie diese Aufgabe aus, wenn der Auftrag ausgeführt wird?

env Zeichenfolgenwörterbuch.
Variablen, die der Umgebung des Prozesses zugeordnet werden sollen.

name Schnur.
ID des Schritts. Zulässige Werte: [-_A-Za-z0-9]*.

timeoutInMinutes Schnur.
Zeit, bis diese Aufgabe abgeschlossen ist, bevor sie vom Server beendet wird.

Hinweis

Pipelines können mit einem Timeout auf Auftragsebene konfiguriert werden. Wenn das Timeoutintervall auf Auftragsebene verstrichen ist, bevor der Schritt abgeschlossen ist, wird der ausgeführte Auftrag (einschließlich Ihres Schritts) beendet, auch wenn der Schritt mit einem längeren timeoutInMinutes Intervall konfiguriert ist. Weitere Informationen finden Sie unter Timeouts.

retryCountOnTaskFailure Schnur.
Anzahl von Wiederholungsversuchen, wenn der Task fehlschlägt.

Hinweise

Die download Schlüsselwort (keyword) lädt Artefaktressourcen herunter.

Ruft je nach Artefakt( oder Artefakten), download auf, auf die verwiesen wird, Download Pipelineartefakte (für Pipelineartefakte, wenn Ihre Pipeline in Azure DevOps Services ausgeführt wird), Herunterladen von Buildartefakten (für Buildartefakte) oder Herunterladen von Artefakten aus der Dateifreigabe (für Dateifreigabeartefakte).

Artefaktdownloadverzeichnis

Artefakte aus der aktuellen Pipeline werden in $(Pipeline.Workspace)/<artifact name> heruntergeladen.

Artefakte aus der zugeordneten Pipelineressource werden in $(Pipeline.Workspace)/<pipeline resource identifier>/<artifact name>heruntergeladen.

Automatischer Download in Bereitstellungsaufträgen

Alle verfügbaren Artefakte aus der aktuellen Pipeline und aus den zugehörigen Pipelineressourcen werden automatisch in Bereitstellungsaufträgen heruntergeladen und für Ihre Bereitstellung zur Verfügung gestellt.

Um Downloads zu verhindern, geben Sie download: none an.

Beispiele

steps:
- download: current  # refers to artifacts published by current pipeline
  artifact: WebApp
  patterns: '**/.js'
  displayName: Download artifact WebApp
- download: MyAppA   # downloads artifacts available as part of the pipeline resource specified as MyAppA

Weitere Informationen