Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Package not found exception #26

Closed
andyofengland opened this issue Jul 22, 2019 · 1 comment
Closed

Package not found exception #26

andyofengland opened this issue Jul 22, 2019 · 1 comment

Comments

@andyofengland
Copy link

When no changes have been made to the release pipeline or underlying structure; sometimes I get a build failure due to the package not being found:

2019-07-22T11:12:33.5081582Z ##[debug]Caught exception from task script.
2019-07-22T11:12:33.5119333Z ##[debug]Error record:
2019-07-22T11:12:33.6190833Z ##[debug]Package  could not be found
2019-07-22T11:12:33.6206180Z ##[debug]At C:\agent\_work\_tasks\rvo-vsts-promotepackage-task_7ca5869f-a901-4012-a50d-d0f9d436ffec\1.4.3\vsts-promotepackage-task.ps1:151 char:9
2019-07-22T11:12:33.6222998Z ##[debug]+         throw "Package $packageId could not be found"
2019-07-22T11:12:33.6237830Z ##[debug]+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2019-07-22T11:12:33.6252737Z ##[debug]    + CategoryInfo          : OperationStopped: (Package  could not be found:String) [], RuntimeException
2019-07-22T11:12:33.6266410Z ##[debug]    + FullyQualifiedErrorId : Package  could not be found
2019-07-22T11:12:33.6282642Z ##[debug] 
2019-07-22T11:12:33.6306067Z ##[debug]Script stack trace:
2019-07-22T11:12:33.6350458Z ##[debug]at Get-PackageInfo, C:\agent\_work\_tasks\rvo-vsts-promotepackage-task_7ca5869f-a901-4012-a50d-d0f9d436ffec\1.4.3\vsts-promotepackage-task.ps1: line 151
2019-07-22T11:12:33.6363800Z ##[debug]at Set-PackageQuality, C:\agent\_work\_tasks\rvo-vsts-promotepackage-task_7ca5869f-a901-4012-a50d-d0f9d436ffec\1.4.3\vsts-promotepackage-task.ps1: line 164
2019-07-22T11:12:33.6380252Z ##[debug]at Run, C:\agent\_work\_tasks\rvo-vsts-promotepackage-task_7ca5869f-a901-4012-a50d-d0f9d436ffec\1.4.3\vsts-promotepackage-task.ps1: line 221
2019-07-22T11:12:33.6395092Z ##[debug]at <ScriptBlock>, C:\agent\_work\_tasks\rvo-vsts-promotepackage-task_7ca5869f-a901-4012-a50d-d0f9d436ffec\1.4.3\vsts-promotepackage-task.ps1: line 230
2019-07-22T11:12:33.6409542Z ##[debug]at <ScriptBlock>, <No file>: line 1
2019-07-22T11:12:33.7112525Z ##[debug]at <ScriptBlock>, <No file>: line 22
2019-07-22T11:12:33.7113293Z ##[debug]at <ScriptBlock>, <No file>: line 18
2019-07-22T11:12:33.7135972Z ##[debug]at <ScriptBlock>, <No file>: line 1
2019-07-22T11:12:33.7184820Z ##[debug]Exception:
2019-07-22T11:12:33.7270906Z ##[debug]System.Management.Automation.RuntimeException: Package  could not be found
2019-07-22T11:12:33.7486462Z ##[error]Package  could not be found
2019-07-22T11:12:33.7486841Z ##[debug]Processed: ##vso[task.logissue type=error]Package  could not be found
2019-07-22T11:12:33.7494599Z ##[debug]Processed: ##vso[task.complete result=Failed]

If I look at the build definition, I see a warning icon on each of the promote tasks and I have to then re-point it to the package thats defined within the Azure Artifact store.

The error only happens on this plugin and it is across all releases within the project - I have not yet enabled th eplugin on builds in different projects yet, so am unable to test this.

The last time the task worked was last week and yet today it failed so I am assuming (perhaps wrongly) that when the underlying plugin code is updated, it loses the link to the artefact store.

@NightOwl888
Copy link
Contributor

See my comment here. This looks to be the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants