definisi steps.download

Langkah ini download mengunduh artefak yang terkait dengan eksekusi saat ini atau dari Alur Azure lain yang terkait sebagai sumber daya alur.

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.

Definisi yang mereferensikan definisi ini: langkah-langkah

Properti

download String. Diperlukan sebagai properti pertama.
Tentukan pengidentifikasi sumber daya alur saat ini, atau tidak ada untuk menonaktifkan pengunduhan otomatis.

artifact String.
Nama artefak.

patterns String.
Pola untuk mengunduh file dari artefak.

condition String.
Evaluasi ekspresi kondisi ini untuk menentukan apakah akan menjalankan tugas ini.

continueOnErrorboolean.
Terus berjalan bahkan pada kegagalan?

displayName String.
Nama yang dapat dibaca manusia untuk tugas tersebut.

targettarget.
Lingkungan untuk menjalankan tugas ini.

enabledboolean.
Jalankan tugas ini saat pekerjaan berjalan?

env kamus string.
Variabel untuk dipetakan ke lingkungan proses.

name String.
ID langkah. Nilai yang dapat diterima: [-_A-Za-z0-9]*.

timeoutInMinutes String.
Waktu untuk menunggu tugas ini selesai sebelum server mematikannya.

Catatan

Alur dapat dikonfigurasi dengan batas waktu tingkat pekerjaan. Jika interval batas waktu tingkat pekerjaan berlalu sebelum langkah Anda selesai, pekerjaan yang sedang berjalan (termasuk langkah Anda) dihentikan, bahkan jika langkah dikonfigurasi dengan interval yang lebih lama timeoutInMinutes . Untuk informasi selengkapnya, lihat Batas Waktu.

retryCountOnTaskFailure String.
Jumlah percobaan ulang jika tugas gagal.

Keterangan

Kata download kunci mengunduh sumber daya artefak.

Bergantung pada jenis artefak yang dirujuk (atau artefak), download panggilan Unduh Artefak Alur (untuk artefak Alur, jika alur Anda berjalan di Azure DevOps Services), Unduh Artefak Build (untuk artefak build), atau Unduh artefak dari berbagi file (untuk artefak berbagi file).

Lokasi pengunduhan artefak

Artefak dari alur saat ini diunduh ke $(Pipeline.Workspace)/<artifact name>.

Artefak dari sumber daya alur terkait diunduh ke $(Pipeline.Workspace)/<pipeline resource identifier>/<artifact name>.

Pengunduhan otomatis dalam pekerjaan penyebaran

Semua artefak yang tersedia dari alur saat ini dan dari sumber daya alur terkait secara otomatis diunduh dalam pekerjaan penyebaran dan tersedia untuk penyebaran Anda.

Untuk mencegah unduhan, tentukan download: none.

Contoh

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

Lihat juga