azure-pipelines-tasks: YAML task for download artifacts does not work with variable

I have been working in Azure Devops Services. I’ve added to my azure devops pipeline step to download artifact from CI pipeline. It is working perfect, but I tried to change artifact name to variables, because this names is using in many places.

strategy:

        runOnce:

          deploy:

            steps:    
      
            - download: $(artifactPipe) 
            
              artifact: $(artifactName)

When I execute this code I receive error:

##[error]Invalid hex string #/11700000/drop (Parameter ‘hex’)

I think this is a bug. I want to ask to fix this ASAP. Because it is block our production pipeline. Thanks in advance.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 19 (9 by maintainers)

Most upvoted comments

@titans2016 do you use PublishPipelinesArtifacts task to publish artifacts? Looks like original artifact was generated by publish build artifacts task - so some field has wrong format, which causes this issue. If you published it via PublishBuildArtifacts tasks - it would be more reliable to download it via DownloadBuildArtifacts task.