使用此工作將本機目錄或檔案發佈為目前管線的具名成品。
此工作有較新版本。 如需詳細資訊,請參閱 PublishPipelineArtifact@1。
使用此工作將本機目錄或檔案發佈為目前管線的具名成品。
這很重要
Azure DevOps Services 僅支援這項工作。 如果您在 Azure DevOps Server 上使用,如果您使用 Azure DevOps Server 或 TFS 2018,則會收到類似 Pipeline Artifact Task is not supported in on-premises. Please use Build Artifact Task instead.
使用 發佈組建成品 的錯誤訊息。
語法
# Publish Pipeline Artifacts v0
# Publish a local directory or file as a named artifact for the current pipeline.
- task: PublishPipelineArtifact@0
inputs:
artifactName: 'drop' # string. Required. The name of this artifact. Default: drop.
targetPath: # string. Required. Path to publish.
#properties: # string. Custom properties.
# Publish Pipeline Artifacts v0
# Publish a local directory or file as a named artifact for the current pipeline.
- task: PublishPipelineArtifact@0
inputs:
artifactName: 'drop' # string. Required. The name of this artifact. Default: drop.
targetPath: # string. Required. Path to publish.
輸入
artifactName
-
此成品的名稱
string
。 必須的。 預設值:drop
。
指定成品的名稱。
properties
-
自定義屬性
string
。
指定要與成品建立關聯的自定義屬性。
在所有索引鍵上使用具有前置詞 user-
的有效 JSON 字串。
工作控制選項
除了工作輸入之外,所有工作都有控制選項。 如需詳細資訊,請參閱 控制項選項和一般工作屬性。
輸出變數
沒有。
此工作有較新版本。 如需詳細資訊,請參閱 PublishPipelineArtifact@1。
這很重要
Azure DevOps Services 僅支援這項工作。 如果您在 Azure DevOps Server 上使用,如果您使用 Azure DevOps Server 或 TFS 2018,則會收到類似 Pipeline Artifact Task is not supported in on-premises. Please use Build Artifact Task instead.
使用 發佈組建成品 的錯誤訊息。
需求
要求 | 說明 |
---|---|
管線類型 | YAML、傳統組建、傳統版本 |
執行於 | Agent、DeploymentGroup |
需求 | 沒有 |
功能 | 此工作不符合作業中後續工作的任何需求。 |
命令限制 | 任意 |
Settable 變數 | 任意 |
代理程式版本 | 2.199.0 或更新 |
工作類別 | 效用 |
要求 | 說明 |
---|---|
管線類型 | YAML、傳統組建、傳統版本 |
執行於 | Agent、DeploymentGroup |
需求 | 沒有 |
功能 | 此工作不符合作業中後續工作的任何需求。 |
命令限制 | 任意 |
Settable 變數 | 任意 |
代理程式版本 | 2.199 或更高版本 |
工作類別 | 效用 |
要求 | 說明 |
---|---|
管線類型 | YAML、傳統組建、傳統版本 |
執行於 | Agent、DeploymentGroup |
需求 | 沒有 |
功能 | 此工作不符合作業中後續工作的任何需求。 |
命令限制 | 任意 |
Settable 變數 | 任意 |
代理程式版本 | 2.155.1 或更高版本 |
工作類別 | 效用 |