question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Github download release tasks successfully sees tag and repos but downloads nothing

See original GitHub issue

Hi,

using cloud azure-devops and the github download release. tried on both the gui and the yaml pipeline.

When i try and download a tagged release the task will find the possible tags and completes successfully. but with the message:

Starting: Download GitHub Release
==============================================================================
Task         : Download GitHub Release
Description  : Downloads a GitHub Release from a repository
Version      : 0.160.2
Author       : Microsoft Corporation
Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/download-github-release
==============================================================================
Downloading assets of release 'v2.2' from: https://api.github.com/repos/xxx/xxx/releases/28780998/assets
Total Files: 0, Processed: 0, Skipped: 0, Failed: 0, Download time: 1.006 secs, Download size: 0Bytes
Successfully downloaded release assets to 'd:\a\1\a'
Finishing: Download GitHub Release

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:10

github_iconTop GitHub Comments

1reaction
craig-johnstoncommented, Sep 1, 2022

The problem appears to be the code here: https://github.com/microsoft/azure-pipelines-tasks/blob/master/Tasks/DownloadGitHubReleaseV0/main.ts#L187 It does not support pagination and the default number of assets per page is 30 according to the documentation: https://docs.github.com/en/rest/releases/assets#list-release-assets Supporting pagination looks difficult as the actual fetch and handling is in another package (ArtifactEngine) - https://github.com/microsoft/azure-pipelines-extensions/blob/master/Extensions/ArtifactEngine

A quick hack would be to up the limit to 100 by adding a per_page=100 query param to the URL.

1reaction
bvdwaltcommented, Nov 20, 2020

I also have this probelm, I’m using a private GitHub repo, but I have the GitHub Connection set properly on the Download GitHub Release task in my Azure build Pipeline.

Mine also just shows this: Downloading assets of release ‘v1.0.0’ from: https://api.github.com/repos/***/***/releases/***/assets Total Files: 0, Processed: 0, Skipped: 0, Failed: 0, Download time: 1.009 secs, Download size: 0Bytes Successfully downloaded release assets to ‘D:\a\1\s/…’

I have seen some mention somewhere about the files in your assets on the GitHub Release, but no real indication of what file should then be there for the Azure pipeline to get the file. Here is the Closed issue I found: Download GitHub Release with private repo fails #10994 as well as the mentioned comment here

Read more comments on GitHub >

github_iconTop Results From Across the Web

`release not found` by GitHub CLI when attempting to ...
If you look at the source code implementing the gh release download command, you'll see that the "release not found" error is returned...
Read more >
"Github Release" artifact does not download/clone the source ...
This is by design. GitHub Releases artifact OR DownloadGitHubRelease task download the files uploaded as part of GitHubRelease but not the source code....
Read more >
Pipeline options for Git repositories - Azure - Microsoft Learn
Make sure that whichever account you use has access to both the main repository as well as the submodules. If your main repository...
Read more >
Git - Jenkins Plugins
Introduction; Changelog in GitHub Releases; Pipelines ... Prior release notes are recorded in the git plugin repository change log.
Read more >
git-fetch Documentation - Git
See the PRUNING section below for more details. -n; --no-tags. By default, tags that point at objects that are downloaded from the remote...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found