共用方式為


steps.downloadBuild 定義

此步驟 downloadBuild 會下載組建成品。

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.
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.
  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.

參考此定義的定義: 步驟

屬性

downloadBuild 字串。 作為第一個屬性的必要專案。
組建資源的識別碼。

artifact 字串。
成品名稱。

path 字串。
要下載成品的路徑。

patterns 字串。
下載符合模式的檔案。

condition 字串。
評估此條件運算式,以判斷是否要執行這項工作。

continueOnError布林值
即使在失敗時仍繼續執行?

displayName 字串。
工作的人類可讀取名稱。

targettarget
要在其中執行這項工作的環境。

enabled布林值
當作業執行時,請執行這項工作?

env 字串字典。
要對應至進程環境的變數。

name 字串。
步驟的識別碼。 可接受的值:[-_A-Za-z0-9]*。

timeoutInMinutes 字串。
等候此工作在伺服器終止之前完成的時間。

注意

管線可以設定為作業層級逾時。 如果作業層級逾時間隔在步驟完成之前經過,則即使步驟已設定較長 timeoutInMinutes 的間隔,執行中作業仍 (包括步驟) 終止。 如需詳細資訊,請參閱 逾時

retryCountOnTaskFailure 字串。
如果工作失敗,重試次數。

備註

downloadBuild關鍵字是下載組建成品工作的快捷方式。

注意

管線小組建議從 downloadBuild (下載組建成品工作) 升級,以 下載 (下載管線成品工作) ,以加快效能。

另請參閱