Download Secure File task
Use this task in a build or release pipeline to download a secure file to a temporary location on the build or release agent.
Use this task to download a secure file from the server during a build or release.
Once downloaded, the secure file is located in the
$(Agent.TempDirectory) directory of the Azure Pipelines Agent.
The full path of the downloaded file is stored to the
$env:DOWNLOADSECUREFILE_SECUREFILEPATH environment variable.
If you use multiple versions of the Download Secure File task in your pipeline, they can be referenced with the
... environment variables, where the number in the environment variable corresponds with the task version.
Note that if you use two Download Secure File tasks in the same pipeline with the same task version, the
$env:DOWNLOADSECUREFILE_SECUREFILEPATH environment variable will not be populated, but both files will still be downloaded to
# Download Secure File # Download a secure file to a temporary location on the build or release agent - task: DownloadSecureFile@1 inputs: secureFile:
|Secure File||Select the secure file to download to a temporary location on the agent machine. The file will be deleted after the build or release.|
We'd love to hear your thoughts. Choose the type you'd like to provide:
Our feedback system is built on GitHub Issues. Read more on our blog.