New error using Update-AppveyorBuild -Version
For a long time I have used
init:
- ps: Update-AppveyorBuild -Version $($env:APPVEYOR_REPO_COMMIT.substring(0,7))
Today this started generating an error. What is odd is that the error happens most of the time, but not every time.Exception calling "UpdateBuildDetails" with "10" argument(s): "Build with specified version already exists."
At C:\Program Files\AppVeyor\BuildAgent\Modules\build-worker-api\build-worker-api.psm1:41 char:5
+ [Appveyor.BuildAgent.Api.RestBuildServices]::UpdateBuildDetails($ ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : Exception
Has something changed? Am I doing something wrong?Thanks!
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Feodor Fitsner on Feb 25, 2021 @ 08:33 PM
Nothing has been changed.
Exception calling "UpdateBuildDetails" with "10" argument(s)
looks wierd. Could you drop a link to a build where you get that?2 Posted by Dave on Feb 25, 2021 @ 08:36 PM
https://ci.appveyor.com/project/roundfile/new-builds/builds/37956284
Support Staff 3 Posted by Feodor Fitsner on Feb 25, 2021 @ 08:39 PM
Alright, build with that version indeed exists: https://ci.appveyor.com/project/roundfile/new-builds/history
4 Posted by Dave on Feb 25, 2021 @ 08:51 PM
Notice this additional information from the Windows build log. It appears the sequential build number is used instead of the substring of the commit number.
https://ci.appveyor.com/project/roundfile/new-builds/builds/3795628...
Looking at the macos build it appears that the Update-AppveyorBuild -Version command fails completely.
https://ci.appveyor.com/project/roundfile/new-builds/builds/3795628...
This is all new just today. The scripts have worked fine before.
Support Staff 5 Posted by Feodor Fitsner on Feb 25, 2021 @ 08:53 PM
Try deleting that build in the history: https://ci.appveyor.com/project/roundfile/new-builds/builds/37955912
6 Posted by Dave on Feb 25, 2021 @ 09:01 PM
Thanks! Is this happening because of the cancelled build? Not a unique version number in that case?
Support Staff 7 Posted by Feodor Fitsner on Feb 26, 2021 @ 04:36 AM
Yep, that was the issue.
Feodor Fitsner closed this discussion on Apr 28, 2021 @ 09:03 PM.