Publish Pipeline Artifact task
Use this task in a build pipeline to publish pipeline artifacts to Azure Pipeline (note that publishing is only supported in build pipelines).
Looking to get started working with build artifacts? See Artifacts in Azure Pipelines.
# Publish Pipeline Artifact # Publish a local directory or file as a named artifact for the current pipeline. - task: PublishPipelineArtifact@0 inputs: #artifactName: 'drop' targetPath:
|targetPath||Path to the folder or file you want to publish. The path must be a fully-qualified path or a valid path relative to the root directory of your repository. Typically, you'll specify
|artifactName||Specify the name of the artifact that you want to create. It can be whatever you want. For example:
This task is open source on GitHub. Feedback and contributions are welcome.
Q & A
Q: I'm having problems. How can I troubleshoot them?
A: Try this:
On the variables tab, add
system.debugand set it to
true. Select to allow at queue time.
In the explorer tab, view your completed build and click the build step to view its output.
The control options arguments described above can also be useful when you're trying to isolate a problem.
Q: How do variables work? What variables are available for me to use in the arguments?
$(Agent.BuildDirectory) are just a few of the variables you can use. See Variables.
Send feedback about: