Open harshit0921 opened 1 year ago
This issue is stale because it has been open for 180 days with no activity. Remove the stale label or comment on the issue otherwise this will be closed in 5 days
Still happening
I have the same issue .. if I specify a specificTag I receive a not valid error and using defaultVersionType: 'latest' same error as above. Trying to download from a private repo
Thank you for the feedback. Re-opening
I too tried various things but could not get it to work. https://www.reddit.com/r/azuredevops/comments/17mrj0g/downloadgithubrelease_task_doesnt_seem_to_work/
Hi! I have same issue! In DownloadGitHubRelease step, I tried different options in defaultVersionType and version fields but always same error. "The release version/tag input is not valid". I tried 'latest' or specifying version but fails. Does anyone know how to set up yaml in these cases? Thanks!!
@merlynomsft any view on when this might be resolved or any specific examples you can provide to sue specificTag/specificVersion as workarounds ..?
If your agent has the gh command installed you can use "gh release download" in a command task instead.
I think I figured out the root cause here:
I added a tag '0.0.0-47' and the task kept failing with either ##[error]The release version/tag input '0.0.0-47' is not valid
when using "specificTag" or with ##[error]The release version/tag input undefined is not valid
when using "latest".
Whatever method is searching for the tag fails when tags are not formatted in a certain way, but the error message always prints out what's in the version
parameter of the task.
Deleted the tag and recreated it under 0.0.47 and now it works.
This is still happening and since I'm running the pipeline on a self-hosted agent (and private organisation in GitHub) the gh release download
workaround doesn't apply. My task looks as follows:
- task: DownloadGitHubRelease@0
inputs:
connection: 'my-GH-connection'
userRepository: 'my-org/my-project'
defaultVersionType: 'latest'
itemPattern: '**'
downloadPath: '$(System.ArtifactsDirectory)'
The output from the pipeline is this
##[debug]Evaluating condition for step: 'DownloadGitHubRelease'
##[debug]Evaluating: SucceededNode()
##[debug]Evaluating SucceededNode:
##[debug]=> True
##[debug]Result: True
Starting: DownloadGitHubRelease
==============================================================================
Task : Download GitHub Release
Description : Downloads a GitHub Release from a repository
Version : 0.240.1
Author : Microsoft Corporation
Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/download-github-release
==============================================================================
[ ... truncated ... ]
##[debug]SYSTEM.TEAMFOUNDATIONSERVERURI=https://dev.azure.com/my-org/
##[debug]SYSTEM.TEAMPROJECT=my-project
##[debug]BUILD.BUILDID=1605
##[debug]TASK.DISPLAYNAME=DownloadGitHubRelease
##[debug]SYSTEM.JOBID=82f6a7e9-9c69-5487-e7a9-9d147130eb11
##[debug]AGENT.VERSION=3.240.1
##[debug]AGENT.OS=Linux
##[debug]AGENT.NAME=my-hosted-agent
##[debug]Processed: ##vso[telemetry.publish area=DownloadGitHubRelease;feature=reliability]{"hostType":"build","definitionName":"[NonEmail:my-org.my-project_GH_my-pipeline]","processId":"1605","processUrl":"https://dev.azure.com/my-org/my-project/_build?buildId=1605","taskDisplayName":"DownloadGitHubRelease","jobid":"82f6a7e9-9c69-5487-e7a9-9d147130eb11","agentVersion":"3.240.1","agentOS":"Linux","agentName":"my-hosted-agent","version":{"Major":0,"Minor":240,"Patch":1},"issueType":"error","errorMessage":"\"The release version/tag input 'undefined' is not valid\""}
##[debug]task result: Failed
##[error]The release version/tag input 'undefined' is not valid
##[debug]Processed: ##vso[task.issue type=error;]The release version/tag input 'undefined' is not valid
##[debug]Processed: ##vso[task.complete result=Failed;]The release version/tag input 'undefined' is not valid
Finishing: DownloadGitHubRelease
Question, Bug, or Feature?
Type: Bug
Enter Task Name: Download Github Release
Environment
Server - Azure Pipelines
Agent - Hosted
Issue Description
While running "Download Github Release" task, the Default Version is selected as Latest Release which should download the latest release artifacts to the folder. But on running the task, I get the message "[error]The release version/tag input 'undefined' is not valid". In YAML file for the task, the defaultVersionType parameter value should be 'latest' but the auto generated YAML file for the task does not contain this parameter. Even if the default value for the parameter is 'latest', it seems the task is taking the value as 'undefined' if it is not present in YAML file which can be seen in the below logs.
Task logs
2022-09-29T18:12:33.7152541Z ##[section]Starting: Download GitHub Release 2022-09-29T18:12:33.7594753Z ============================================================================== 2022-09-29T18:12:33.7595345Z Task : Download GitHub Release 2022-09-29T18:12:33.7595702Z Description : Downloads a GitHub Release from a repository 2022-09-29T18:12:33.7595899Z Version : 0.210.0 2022-09-29T18:12:33.7596202Z Author : Microsoft Corporation 2022-09-29T18:12:33.7596584Z Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/download-github-release 2022-09-29T18:12:33.7596880Z ============================================================================== 2022-09-29T18:12:34.8553098Z ##[error]The release version/tag input 'undefined' is not valid 2022-09-29T18:12:34.8581429Z ##[section]Finishing: Download GitHub Release
Auto Generated YAML for the task:
No defaultVersionType parameter generated
Error logs
2022-09-29T18:12:34.8553098Z ##[error]The release version/tag input 'undefined' is not valid