<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Azure DevOps on Ajo Mathew</title><link>https://blog.ajomathew.dev/tags/azure-devops/</link><description>Recent content in Azure DevOps on Ajo Mathew</description><generator>Hugo -- gohugo.io</generator><language>en-US</language><lastBuildDate>Thu, 17 Jun 2021 00:00:00 +0000</lastBuildDate><atom:link href="https://blog.ajomathew.dev/tags/azure-devops/rss.xml" rel="self" type="application/rss+xml"/><item><title>Azure DevOps | CI - Pipeline failing on checkout</title><link>https://blog.ajomathew.dev/posts/2021-06-17-azuredevops-checkout/</link><pubDate>Thu, 17 Jun 2021 00:00:00 +0000</pubDate><guid>https://blog.ajomathew.dev/posts/2021-06-17-azuredevops-checkout/</guid><description>&lt;p&gt;I configured CI build for every pull request, which started failing suddenly with the below sets of errors.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;error: cannot lock ref &lt;span style="color:#e6db74"&gt;&amp;#39;refs/remotes/origin/release&amp;#39;&lt;/span&gt;: there is a non-empty directory &lt;span style="color:#e6db74"&gt;&amp;#39;.git/refs/remotes/origin/release&amp;#39;&lt;/span&gt; blocking reference &lt;span style="color:#e6db74"&gt;&amp;#39;refs/remotes/origin/release&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; ! &lt;span style="color:#f92672"&gt;[&lt;/span&gt;new branch&lt;span style="color:#f92672"&gt;]&lt;/span&gt; release -&amp;gt; origin/release &lt;span style="color:#f92672"&gt;(&lt;/span&gt;unable to update local ref&lt;span style="color:#f92672"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#75715e"&gt;##[warning]Git fetch failed with exit code 1, back off 9.729 seconds before retry.&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;git -c http.extraheader&lt;span style="color:#f92672"&gt;=&lt;/span&gt;&lt;span style="color:#e6db74"&gt;&amp;#34;AUTHORIZATION: bearer ***&amp;#34;&lt;/span&gt; fetch --force --tags --prune --progress --no-recurse-submodules origin +refs/heads/*:refs/remotes/origin/* +refs/pull/2476/merge:refs/remotes/pull/2476/merge
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;error: cannot lock ref &lt;span style="color:#e6db74"&gt;&amp;#39;refs/remotes/origin/release&amp;#39;&lt;/span&gt;: there is a non-empty directory &lt;span style="color:#e6db74"&gt;&amp;#39;.git/refs/remotes/origin/release&amp;#39;&lt;/span&gt; blocking reference &lt;span style="color:#e6db74"&gt;&amp;#39;refs/remotes/origin/release&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;I tried cleaning the checkout dir in my custom Azure DevOps build agent. After a lot of searching. I found the root cause.&lt;/p&gt;</description></item></channel></rss>