tag:help.appveyor.com,2012-11-13:/discussions/problems/19475-build-failure-when-running-appveyor-updatebuild-commandAppVeyor: Discussion 2019-09-20T19:17:28Ztag:help.appveyor.com,2012-11-13:Comment/468446592019-03-08T15:27:29Z2019-09-20T19:17:28ZBuild failure when running "appveyor UpdateBuild" command<div><p>I'm running into the same issue with my builds.</p>
<p><a href="https://ci.appveyor.com/project/Exceptionless/exceptionless/builds/22930682">https://ci.appveyor.com/project/Exceptionless/exceptionless/builds/...</a></p>
<p><a href="https://github.com/exceptionless/Exceptionless/blob/master/appveyor.yml#L30">https://github.com/exceptionless/Exceptionless/blob/master/appveyor...</a></p>
<p>Did you figure anything out?</p></div>Eric J. Smithtag:help.appveyor.com,2012-11-13:Comment/468446592019-03-08T18:15:16Z2019-03-08T18:15:16ZBuild failure when running "appveyor UpdateBuild" command<div><p>Yeah. I added a fallback UpdateBuild command if the custom one failed.</p>
<p><a href="https://github.com/Cloudbox/Cloudbox/blob/d75767c81ec6ec13aa517f1eddd4d547c259ee83/appveyor.yml#L56">https://github.com/Cloudbox/Cloudbox/blob/d75767c81ec6ec13aa517f1ed...</a></p></div>desimaniactag:help.appveyor.com,2012-11-13:Comment/468446592019-03-08T18:21:21Z2019-09-20T19:17:28ZBuild failure when running "appveyor UpdateBuild" command<div><p>Hmm... that seems pretty crappy that you would have to do that. Why hasn't anyone from AppVeyor even responded to this message from over a month ago?</p></div>Eric J. Smithtag:help.appveyor.com,2012-11-13:Comment/468446592019-03-08T18:26:40Z2019-03-08T18:26:40ZBuild failure when running "appveyor UpdateBuild" command<div><p>Sorry guys, missed it. Looking now.</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/468446592019-03-08T18:46:21Z2019-03-08T18:46:21ZBuild failure when running "appveyor UpdateBuild" command<div><p>Am I understanding correctly that error is intermittent and even the <a href="https://github.com/exceptionless/Exceptionless/commit/a4561764b012d375ad29598d5ac8e6b5b8fa47a0">same commit</a> build can run with and without this error?</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/468446592019-03-08T19:14:13Z2019-09-20T19:17:28ZBuild failure when running "appveyor UpdateBuild" command<div><p>Correct. It is intermittent.</p></div>Eric J. Smithtag:help.appveyor.com,2012-11-13:Comment/468446592019-03-08T20:31:43Z2019-03-08T20:31:43ZBuild failure when running "appveyor UpdateBuild" command<div><p>I have to admit that error is not super descriptive, but it seems that root cause is conflict -- attempt to set already existing version. <a href="https://ci.appveyor.com/project/Exceptionless/exceptionless/builds/22930682#L34">Here</a> it tried to set <code>5.0.3403-pre</code>, but is was already set <a href="https://ci.appveyor.com/project/Exceptionless/exceptionless/builds/22836268#L33">here</a>.</p>
<p>Am I correct or missing something?</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/468446592019-03-08T20:34:30Z2019-09-20T19:17:28ZBuild failure when running "appveyor UpdateBuild" command<div><p>It is not being called twice. Here is the yml:<br>
<a href="https://github.com/justmine66/Exceptionless/blob/master/appveyor.yml#L30">https://github.com/justmine66/Exceptionless/blob/master/appveyor.ym...</a></p>
<p>Even if it was being called multiple times, that doesn't seem like that should be an issue either.</p></div>Eric J. Smithtag:help.appveyor.com,2012-11-13:Comment/468446592019-03-08T22:32:08Z2019-03-08T22:43:25ZBuild failure when running "appveyor UpdateBuild" command<div><p>I am not saying it was being called twice. I am saying that the same version was already set in previously completed build. Maybe I have to send the same links different way:</p>
<ul>
<li>
<p>Version <code>5.0.3403-pre</code> was set in this build: build:<a href="https://ci.appveyor.com/project/Exceptionless/exceptionless/builds/22836268">https://ci.appveyor.com/project/Exceptionless/exceptionless/builds/...</a></p>
</li>
<li>
<p>Then script attempted to set the same version in <strong>another</strong> build: <a href="https://ci.appveyor.com/project/Exceptionless/exceptionless/builds/22930682">https://ci.appveyor.com/project/Exceptionless/exceptionless/builds/...</a></p>
</li>
</ul>
<p>I may still miss something, correct me if I wrong.</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/468446592019-03-08T22:46:02Z2019-09-20T19:17:28ZBuild failure when running "appveyor UpdateBuild" command<div><p>Ahh I see what you are saying now. AppVeyor says no (in a horribly unintuitive way) when I try to set the build number to one that has already been used which happens a lot on pull requests since I’ve got that set to not increment the build number.</p></div>Eric J. Smithtag:help.appveyor.com,2012-11-13:Comment/468446592019-03-09T01:50:31Z2019-03-09T01:50:56ZBuild failure when running "appveyor UpdateBuild" command<div><p>Right, this is what happened. You can add some random string to the version after checking <code>APPVEYOR_PULL_REQUEST_NUMBER</code> environment variable.</p>
<p>Regarding horribly unintuitive way -- we are working on unifying Windows and Linux build agents codebase so it will go away as part of this process (Windows builds does not have this problem).</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/468446592019-03-09T17:48:18Z2019-03-09T17:48:18ZBuild failure when running "appveyor UpdateBuild" command<div><p>This is what I noticed as well. Which is why I had a fallback command.</p></div>desimaniac