tag:help.appveyor.com,2012-11-13:/discussions/questions/28801-tag-build-skiping-because-of-ignored-fileAppVeyor: Discussion 2018-11-07T18:22:31Ztag:help.appveyor.com,2012-11-13:Comment/463606502018-10-26T20:43:23Z2018-10-26T20:43:23ZTag build skiping because of ignored file<div><p>Try set <code>APPVEYOR_IGNORE_COMMIT_FILTERING_ON_TAG</code> "tweak" environment variable to <code>true</code>. More details are <a href="https://www.appveyor.com/docs/environment-variables/">here</a> in the bottom of the page. We just recently added it by similar request from the other customer.</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/463606502018-10-29T11:25:51Z2018-10-29T11:25:51ZTag build skiping because of ignored file<div><p>That seems to have fixed it. The build isn't skipped anymore.</p>
<p>Now I'm having an issue with gitversion... it's complaining about being a detached head... from what I could search about this it seems to be related with the way git is cloning it locally. Am I doing something wrong or missing any git config on AppVeyor to deal properly with tag builds?</p></div>José Simõestag:help.appveyor.com,2012-11-13:Comment/463606502018-10-29T16:52:02Z2018-10-29T16:52:02ZTag build skiping because of ignored file<div><p>Please send a link to the specific build with this error. I made a quick look at <code>nfbot/lib-corelibrary</code> build history and did not find those errors but maybe I did not look thoroughly enough.</p>
<p>However I noticed that you are struggling with GitVersion installation. Do you really need it? GitVersion 3.6.2 is installed on <a href="https://www.appveyor.com/docs/windows-images-software/">all AppVeyor Windows images</a>. If you need newer version, you are welcome to create an issue at <a href="https://github.com/appveyor/ci/issues">https://github.com/appveyor/ci/issues</a>.</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/463606502018-10-29T17:04:37Z2018-10-29T17:13:41ZTag build skiping because of ignored file<div><p>Hi Ilya,</p>
<p>The last failed build is suffering from this. See here:<br>
<a href="https://ci.appveyor.com/project/nfbot/lib-corelibrary#L593">https://ci.appveyor.com/project/nfbot/lib-corelibrary#L593</a></p>
<p>Some pointers to what I've found:<br>
- <a href="https://coderwall.com/p/3ipx_a/gitversion-it-looks-like-the-branch-being-examined-is-a-detached-head-on-jenkins">https://coderwall.com/p/3ipx_a/gitversion-it-looks-like-the-branch-...</a> - <a href="https://github.com/GitTools/GitVersion/issues/553">https://github.com/GitTools/GitVersion/issues/553</a></p>
<p>Regarding GitVersion, yes it seems that we need stuff that's only on 4.x. I've just noticed that 4.0 is now released. I've opened an issue there.</p></div>José Simõestag:help.appveyor.com,2012-11-13:Comment/463606502018-10-30T19:23:21Z2018-10-30T19:23:21ZTag build skiping because of ignored file<div><p>Hi Ilya,</p>
<p>Any update on this please? :)</p></div>José Simõestag:help.appveyor.com,2012-11-13:Comment/463606502018-10-30T19:29:30Z2018-10-30T19:30:58ZTag build skiping because of ignored file<div><p>Just tried to look at the link you sent (<a href="https://ci.appveyor.com/project/nfbot/lib-corelibrary#L593">https://ci.appveyor.com/project/nfbot/lib-corelibrary#L593</a>) and it seems to pointing to the empty log of cancelled build. Can you please send me a working link to this specific error?</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/463606502018-10-30T20:32:43Z2018-10-30T20:32:43ZTag build skiping because of ignored file<div><p>Please take a look here<br>
<a href="https://ci.appveyor.com/project/nfbot/lib-corelibrary/builds/19876068">https://ci.appveyor.com/project/nfbot/lib-corelibrary/builds/19876068</a></p>
<p>Line 593 has the error.</p>
<p>This only occurs when building a tag.</p>
<p>Thanks!</p></div>José Simõestag:help.appveyor.com,2012-11-13:Comment/463606502018-10-31T10:27:46Z2018-10-31T10:27:46ZTag build skiping because of ignored file<div><p>Did you try other versions of GitVersion? Just to rule out the chance that it is a problem with specific version of GitVersion? You can return to Chocolatey to try different versions of it.</p>
<p>Side note: if you add <code>appveyor-retry</code> before <code>choco install</code> you will make it a little bit more tolerant to Chocolatey issues.</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/463606502018-10-31T14:55:57Z2018-10-31T14:55:57ZTag build skiping because of ignored file<div><p>I don’t think it’s related with gitversion.</p>
<ol>
<li>Replaced back the install from the official version</li>
<li>run a build, OK</li>
<li>tag commit, build fails</li>
</ol>
<p>Please check the history there, you’ll the last and the one before as I’ve described:<br>
<a href="https://ci.appveyor.com/project/nfbot/lib-nanoframework-hardware-stm32/history">https://ci.appveyor.com/project/nfbot/lib-nanoframework-hardware-st...</a></p>
<p>(it’s a different repo, but I can’t afford to keep making this tests on the other).</p></div>José Simõestag:help.appveyor.com,2012-11-13:Comment/463606502018-11-01T01:24:58Z2018-11-01T01:24:58ZTag build skiping because of ignored file<div><p>Sorry for delays, still looking at this.</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/463606502018-11-02T02:13:47Z2018-11-02T02:13:47ZTag build skiping because of ignored file<div><p>I am unable to get this error with my <a href="https://ci.appveyor.com/project/IlyaFinkelshteyn/projecta/builds/19991982">simple repro</a> (build settings are in UI but you can see it is very simple scenario).</p>
<p>Do you have an idea what is different in your scenario? What I would try first is to move all those <a href="https://github.com/nanoframework/lib-nanoFramework.Hardware.Stm32/blob/develop/appveyor.yml#L38-L42">git commands</a> from <code>init</code> to say <code>install</code> so they do not happen before clone stage. Can you try that?</p>
<p>Also how do you create a tag? I created just in GitHub UI and maybe this is the difference?</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/463606502018-11-02T17:49:49Z2018-11-02T17:49:49ZTag build skiping because of ignored file<div><p>Just realized that I used <code>GitVersion.exe</code> from default location. Changed to <code>C:\ProgramData\chocolatey\bin\GitVersion.exe</code>, still no repro. Please try things I suggested earlier and with calling your git commands after clone and let us know how it goes.</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/463606502018-11-02T17:55:00Z2018-11-02T17:55:00ZTag build skiping because of ignored file<div><p>I’ll be able to do this next Monday. Thank you for looking into it.</p></div>José Simõestag:help.appveyor.com,2012-11-13:Comment/463606502018-11-05T10:26:43Z2018-11-05T10:36:04ZTag build skiping because of ignored file<div><p>No changes after moving that as you've suggested.<br>
I'm raising an issue with gitversion.</p>
<p>(actually it seems that someone else has already reported what looks to me the same issue) <a href="https://github.com/GitTools/GitVersion/issues/1501">https://github.com/GitTools/GitVersion/issues/1501</a></p>
<p>Curious that you are not seeing this on you test repo. Wonder why...</p></div>José Simõestag:help.appveyor.com,2012-11-13:Comment/463606502018-11-05T16:12:00Z2018-11-05T16:12:00ZTag build skiping because of ignored file<div><p>If it is a GitHub issue, please CC <strong>@IlyaFinkelshteyn</strong></p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/463606502018-11-07T18:22:22Z2018-11-07T18:22:22ZTag build skiping because of ignored file<div><p>To update you this: failing to find the root cause and not getting help from the project we've decided to switch to another tool to manage versioning. It's working now and no more issues on builds (PRs, regular and tags).</p>
<p>Thanks again for you assistance with this.</p></div>José Simões