Hi Vesa Savikko
This is an outage issue, I believe that PG Team has rolled backed the feature, could you please try again once.
And try this if not worked,
If you're using the older DownloadBuildArtifacts task, consider switching to DownloadPipelineArtifact- https://learn.microsoft.com/en-us/azure/devops/pipelines/tasks/reference/download-pipeline-artifact-v2?view=azure-pipelines
- task: DownloadPipelineArtifact@2
inputs:
artifact: 'your-artifact-name'
path: '$(Pipeline.Workspace)'
As a workaround until Microsoft fixes this, you can download artifacts manually via REST:
curl -u :<PAT> \
"https://dev.azure.com/<ORG>/<PROJECT>/_apis/build/builds/<BUILD_ID>/artifacts?api-version=7.1-preview.5"
curl -L -u :<PAT> "<downloadUrl>" -o artifact.zip
or
GET https://dev.azure.com/{organization}/{project}/_apis/build/builds/{buildId}/artifacts?artifactName={name}&api-version=7.1-preview.5
this will give you download URL, try accessing that.
or else try via Azure CLI but make sure az devops extension installed.
az pipelines runs artifact download \
--organization https://dev.azure.com/<ORG> \
--project <PROJECT> \
--run-id <BUILD_ID> \
--artifact-name <ARTIFACT_NAME> \
--path .
Downloading the artifacts via az cli is a workaround that can be applied until the issue is resolved. You need a PAT with Build Read permissions and have az cli installed. Replace the organization name, project name, run id and artifact name with your own and it should work.
az extension add --name azure-devops
az devops configure --defaults organization=https://dev.azure.com/myorg
echo "mypat with build read permission" | az devops login --organization https://dev.azure.com/myorg
az pipelines runs artifact download \
--organization https://dev.azure.com/myorg \
--project "My Project" \
--run-id 123456 \
--path "./artifacts" \
--artifact-name "My-Artifact"
Reference:
Hope this helps!
Please Let me know if you have any queries.