I have tried to configure and use this task with and without parameterized inputs. Every build fails on this task with the following:
2018-11-29T23:12:13.0615583Z ##[error]Value cannot be null.
Parameter name: hashAndAlgorithm
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
I'm experiencing exactly the same problem. Releases fail while downloading artifacts.
Hi @jockerman-ipspark and @jayllon , that's not supposed to happen. Are you still having this issue? I'm going to loop @alexmullans in, but it would probably be most helpful if you can submit the logs and issue to the Azure DevOps Developer Community (https://developercommunity.visualstudio.com/spaces/21/index.html), which is actively monitored by the product team. I'm going to close this here as a docs here, but if you find that a docs change should be made, please feel free to reach back out!
@mitchdenny I think you've got a fix coming for this one?
I think I found the issue to be that I was using PublishBuildArtifact and then DownloadPipelineArtifact. The correct pair is PublishPipelineArtifact and DownloadPipelineArtifact.
This is still an issue for me. I have builds called A and B. In build A I'm using DownloadPipelineArtifact to download the artifacts from build B because it's used as an input to build A. This fails with the error in the title of the issue.
Here is the (translated) yaml of this pipeline step:
steps:
- task: DownloadPipelineArtifact@1
displayName: 'Download Pipeline Artifact'
inputs:
buildType: specific
project: '51479742-74ca-4d83-859f-c8b0720c0fba'
pipeline: 957
branchName: refs/heads/master
buildVersionToDownload: latestFromBranch
artifactName: drop
targetPath: 'images/install-internal-service/'
Debug logs for this step (it's the first step in the pipeline): vsts-issue-2615.log
Using the old "Download Build Artifacts" task works as expected.
I have this issue even without specifying DownloadPipelineArtifact at all, because according to the documentation "All available artifacts from the current pipeline and from the associated pipeline resources are automatically downloaded in deployment jobs".
Yet when the task tries to fetch my artifact, I get the Value cannot be null error, even though it's a task that Azure DevOps has tried to insert and run itself without me specifying any parameters.
I also have this problem
2020-01-28T15:56:20.4148665Z ##[error]Value cannot be null.
Parameter name: hashAndAlgorithm
Most helpful comment
I think I found the issue to be that I was using PublishBuildArtifact and then DownloadPipelineArtifact. The correct pair is PublishPipelineArtifact and DownloadPipelineArtifact.