steps.publish 定義

キーワード (keyword)はpublish、他のジョブやパイプラインで使用できるパイプライン成果物としてファイルまたはフォルダーを発行 (アップロード) します。

キーワード (keyword)はpublish、他のジョブやパイプラインで使用できるパイプライン成果物としてファイルまたはフォルダーを発行 (アップロード) します。

重要

このpublish手順は、Azure DevOps Servicesでのみサポートされています。 Azure DevOps Serverで使用すると、Azure DevOps Serverを使用している場合は、「ビルド成果物の発行を使用するPipeline Artifact Task is not supported in on-premises. Please use Build Artifact Task instead.」のようなエラー メッセージが表示されます。

steps:
- publish: string # Required as first property. The publish step is a shortcut for the PublishPipelineArtifact@1 task. The task publishes (uploads) a file or folder as a pipeline artifact that other jobs and pipelines can consume.
  artifact: string # Artifact name.
  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:
- publish: string # Required as first property. The publish step is a shortcut for the PublishPipelineArtifact@1 task. The task publishes (uploads) a file or folder as a pipeline artifact that other jobs and pipelines can consume.
  artifact: string # Artifact name.
  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:
- publish: string # Required as first property. The publish step is a shortcut for the PublishPipelineArtifact@1 task. The task publishes (uploads) a file or folder as a pipeline artifact that other jobs and pipelines can consume.
  artifact: string # Artifact name.
  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.

この定義を参照する定義: ステップ

プロパティ

publish 文字列。 最初のプロパティとして必須。
発行ステップは、PublishPipelineArtifact@1 タスクのショートカットです。 このタスクは、他のジョブやパイプラインが使用できるパイプライン成果物として、ファイルまたはフォルダーを公開 (アップロード) します。

artifact 文字列。
成果物名。

condition 文字列。
この条件式を評価して、このタスクを実行するかどうかを判断します。

continueOnErrorboolean
失敗しても実行を続けますか?

displayName 文字列。
タスクの人間が判読できる名前。

targetターゲット
このタスクを実行する環境。

enabledboolean
ジョブの実行時にこのタスクを実行しますか?

env 文字列ディクショナリ。
プロセスの環境にマップする変数。

name 文字列。
ステップの ID。 使用できる値: [-_A-Za-z0-9]*。

timeoutInMinutes 文字列。
サーバーによって強制終了されるまで、このタスクが完了するまでの時間。

注意

パイプラインは、ジョブ レベルのタイムアウトで構成できます。 ステップが完了する前にジョブ・レベルのタイムアウト間隔が経過すると、ステップが長い timeoutInMinutes 間隔で構成されている場合でも、実行中のジョブ (ステップを含む) が終了します。 詳細については、「 タイムアウト」を参照してください。

retryCountOnTaskFailure 文字列。
タスクが失敗した場合の再試行回数。

注釈

publish キーワードは、パイプライン成果物の公開タスクのショートカットです。

重要

このpublish手順は、Azure DevOps Servicesでのみサポートされています。 Azure DevOps Serverで使用すると、Azure DevOps Serverを使用している場合は、「ビルド成果物の発行を使用するPipeline Artifact Task is not supported in on-premises. Please use Build Artifact Task instead.」のようなエラー メッセージが表示されます。

アプリの公開の詳細を理解してください。

steps:
- publish: $(Build.SourcesDirectory)/build
  artifact: WebApp
  displayName: Publish artifact WebApp

関連項目