Azure-pipelines-tasks: Variable build.artifactstagingdirectory undefined for the release pipeline

Created on 26 Feb 2019  路  2Comments  路  Source: microsoft/azure-pipelines-tasks

Troubleshooting

Using the variable agent.TempDirectory instead of build.artifactstagingdirectory

Environment

  • Server - Azure Pipelines or TFS on-premises

    • TFS 2018
    • Azure DevOps
  • Agent - Private:

    • Windows 10 OS of the machine running the agent and the agent version: 2.1.44

Issue Description

The variable build.artifactstagingdirectory undefined for the release pipelines and works for the build

Error logs

Error "Path must be a string. Received undefined"

Release

Most helpful comment

Release does not have a staging directory. If you are looking for artifacts you can use the System.ArtifactsDirectory.

You can refer the below link for supported variables.
https://docs.microsoft.com/en-us/azure/devops/pipelines/release/variables?view=azure-devops&tabs=batch#default-variables

All 2 comments

Release does not have a staging directory. If you are looking for artifacts you can use the System.ArtifactsDirectory.

You can refer the below link for supported variables.
https://docs.microsoft.com/en-us/azure/devops/pipelines/release/variables?view=azure-devops&tabs=batch#default-variables

Closing this issue as it's not a bug. Please let know us if you have any further queries.

Was this page helpful?
0 / 5 - 0 ratings