Rediģēt

Kopīgot, izmantojot


PublishPipelineArtifact@0 - Publish Pipeline Artifacts v0 task

Use this task to publish a local directory or file as a named artifact for the current pipeline.

There is a newer version of this task. For more information, see PublishPipelineArtifact@1.

Use this task to publish a local directory or file as a named artifact for the current pipeline.

Important

This task is supported on Azure DevOps Services only. If you use it on Azure DevOps Server, you'll receive an error message similar to Pipeline Artifact Task is not supported in on-premises. Please use Build Artifact Task instead. Use Publish Build Artifacts if you're using Azure DevOps Server or TFS 2018.

Syntax

# 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.
# Publish Pipeline Artifacts v0
# Publish Pipeline Artifact.
- task: PublishPipelineArtifact@0
  inputs:
    artifactName: 'drop' # string. Required. The name of this artifact. Default: drop.
    targetPath: # string. Required. Path to publish.

Inputs

artifactName - The name of this artifact
string. Required. Default value: drop.

Specifies the name of the artifact.


targetPath - Path to publish
string. Required.

Specifies the folder or file path to publish. This can be a fully qualified path or a path relative to the root of the repository. Wildcards are not supported. Variables are supported.


properties - Custom properties
string.

Specifies the custom properties to associate with the artifact. Use a valid JSON string with the prefix user- on all keys.


Task control options

All tasks have control options in addition to their task inputs. For more information, see Control options and common task properties.

Output variables

None.

There is a newer version of this task. For more information, see PublishPipelineArtifact@1.

Important

This task is supported on Azure DevOps Services only. If you use it on Azure DevOps Server, you'll receive an error message similar to Pipeline Artifact Task is not supported in on-premises. Please use Build Artifact Task instead. Use Publish Build Artifacts if you're using Azure DevOps Server or TFS 2018.

Requirements

Requirement Description
Pipeline types YAML, Classic build, Classic release
Runs on Agent, DeploymentGroup
Demands None
Capabilities This task does not satisfy any demands for subsequent tasks in the job.
Command restrictions Any
Settable variables Any
Agent version 2.199.0 or greater
Task category Utility
Requirement Description
Pipeline types YAML, Classic build, Classic release
Runs on Agent, DeploymentGroup
Demands None
Capabilities This task does not satisfy any demands for subsequent tasks in the job.
Command restrictions Any
Settable variables Any
Agent version 2.199 or greater
Task category Utility
Requirement Description
Pipeline types YAML, Classic build, Classic release
Runs on Agent, DeploymentGroup
Demands None
Capabilities This task does not satisfy any demands for subsequent tasks in the job.
Command restrictions Any
Settable variables Any
Agent version 2.155.1 or greater
Task category Utility
Requirement Description
Pipeline types YAML, Classic build, Classic release
Runs on Agent, DeploymentGroup
Demands None
Capabilities This task does not satisfy any demands for subsequent tasks in the job.
Command restrictions Any
Settable variables Any
Agent version 2.140.1 or greater
Task category Utility