<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>West silently failing to clone repo in Azure DevOps Pipeline</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/121900/west-silently-failing-to-clone-repo-in-azure-devops-pipeline</link><description>I&amp;#39;m trying to get a basic CI/CD pipeline working in Azure DevOps, using Azure hosted agents, and I&amp;#39;m running into a problem where West is silently failing to clone the project repo on west init. 
 Initializing the project on my development machine gives</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 05 Jun 2025 11:49:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/121900/west-silently-failing-to-clone-repo-in-azure-devops-pipeline" /><item><title>RE: West silently failing to clone repo in Azure DevOps Pipeline</title><link>https://devzone.nordicsemi.com/thread/538198?ContentTypeID=1</link><pubDate>Thu, 05 Jun 2025 11:49:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3dcf846b-1e6c-485e-881c-5aa20ccf6c46</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user="CurtisHx2"]- Use &lt;code&gt;nrfutil toolchain-manager&lt;/code&gt; to install the desired toolchain.&amp;nbsp;[/quote]
&lt;p&gt;Try to&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/nrfutil/page/nrfutil-toolchain-manager/nrfutil-toolchain-manager_0.15.0.html#starting-toolchain-environment"&gt; Start toolchain environment&lt;/a&gt;. With this, nrfutil toolchain-manager should set up the environment for you.&lt;/p&gt;
&lt;p&gt;Alterativley, you can install the SDK and toolchain manually, following the &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/installation/install_ncs.html#system-wide_installation"&gt;System-wide installation&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: West silently failing to clone repo in Azure DevOps Pipeline</title><link>https://devzone.nordicsemi.com/thread/538039?ContentTypeID=1</link><pubDate>Wed, 04 Jun 2025 12:09:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fda543a5-d1ce-4161-a68c-26240be4b53b</guid><dc:creator>CurtisHx2</dc:creator><description>&lt;p&gt;That is what I started with, and I ran into a few different problems with getting the environment properly setup outside of VSCode.&amp;nbsp; I think I have a viable path forward.&amp;nbsp; This is mainly for anyone else who&amp;#39;s trying to do something similar.&lt;/p&gt;
&lt;p&gt;The environment is Windows 10/11, using the &lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.5.2/page/zephyr/develop/application/index.html#zephyr_workspace_application"&gt;Zephyr Workspace structure&lt;/a&gt;, with the latest version of nRF Connect (3.0.99) and nRF Connect SDK Toolchain V3.0.2.&amp;nbsp; We&amp;#39;re using Azure hosted build agents, which are created and destroyed for each run. There&amp;#39;s no persistent environment.&amp;nbsp; It has to be setup on every run.&lt;/p&gt;
&lt;p&gt;There&amp;#39;s a few steps that need to be run in order to mimic the build environment provided by the nRF Connect VSCode Plugin.&amp;nbsp; A python virtual environment should probably be used.&lt;/p&gt;
&lt;p&gt;- Install python requirements in &amp;lt;west workspace&amp;gt;/zephyr/scripts/requirements.txt&lt;/p&gt;
&lt;p&gt;- Install python requirements in &amp;lt;west workspace&amp;gt;/nrf/scripts/requirements.txt&lt;/p&gt;
&lt;p&gt;- Use &lt;code&gt;nrfutil toolchain-manager&lt;/code&gt; to install the desired toolchain.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The last part is going to require some work.&amp;nbsp; Inside of the toolchain folder (eg. C:\ncs\toolchains\0b393f9e1b), there is an environment.json file.&amp;nbsp; This file lists the environment variables that need to be setup and how they need to be setup (eg. append, overwrite, etc).&amp;nbsp; I couldn&amp;#39;t find an off the shelf tool, but it shouldn&amp;#39;t be too difficult to make a Python script that can do it.&lt;/p&gt;
&lt;p&gt;Edit: The main reason why I&amp;#39;m taking this route is it lets us use Azure hosted agents, it keeps the CI/CD environment extremely close to the developer environment, and it lets developers use the nRF Connect plugin and its GUI tools.&amp;nbsp; We have a project with a different structure that doesn&amp;#39;t work with the nRF Connect plugin.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: West silently failing to clone repo in Azure DevOps Pipeline</title><link>https://devzone.nordicsemi.com/thread/538032?ContentTypeID=1</link><pubDate>Wed, 04 Jun 2025 11:28:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4bc672b8-a68e-44da-9eb0-257449b0f9d0</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user="CurtisHx2"]At the very high level, I think I need a command line equivalent of the &amp;quot;Add Build Configuration&amp;quot; wizard in the nRF Connect VSCode plugin.&amp;nbsp; The reason for that is most (all?) of my team is going to be using the nRF Connect plugin for development work, and I want the CI/CD environment to be consistent with the developer environment&amp;nbsp; I looked around to see if something like that exists and I couldn&amp;#39;t find anything.[/quote]
&lt;p&gt;The VS Code extension just uses &amp;quot;west&amp;quot; under the hood, so you can use &amp;quot;west&amp;quot; command all the same.&lt;/p&gt;
&lt;p&gt;Here you can see the exact command that VS COde uses when you click build:&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1749036529789v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: West silently failing to clone repo in Azure DevOps Pipeline</title><link>https://devzone.nordicsemi.com/thread/537929?ContentTypeID=1</link><pubDate>Tue, 03 Jun 2025 17:43:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f60706c5-6095-471a-b030-93b32f39250e</guid><dc:creator>CurtisHx2</dc:creator><description>&lt;p&gt;Hi Sigurd,&lt;/p&gt;
&lt;p&gt;I read through those links (thank you) and did some more work today with setting up a CI/CD pipeline in Azure DevOps.&amp;nbsp; &lt;br /&gt;&lt;br /&gt;At the very high level, I think I need a command line equivalent of the &amp;quot;Add Build Configuration&amp;quot; wizard in the nRF Connect VSCode plugin.&amp;nbsp; The reason for that is most (all?) of my team is going to be using the nRF Connect plugin for development work, and I want the CI/CD environment to be consistent with the developer environment&amp;nbsp; I looked around to see if something like that exists and I couldn&amp;#39;t find anything.&lt;/p&gt;
&lt;p&gt;Is there a way to get verbose output from the &amp;quot;Add Build Configuration&amp;quot; wizard? I&amp;#39;d like to see how it sets up and configures the SDK and toolchain settings.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: West silently failing to clone repo in Azure DevOps Pipeline</title><link>https://devzone.nordicsemi.com/thread/537897?ContentTypeID=1</link><pubDate>Tue, 03 Jun 2025 14:11:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce234d2b-8bbb-4f78-bc90-4adc726ef0ac</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;We make the nRF Connect SDK mainly to be used as a desktop experience. Therefore, support for developing using CI/CD is a bit limited. That said, this is what I got:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/zephyrproject-rtos/docker-image"&gt;https://github.com/zephyrproject-rtos/docker-image&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/zephyrproject-rtos/zephyr/wiki/Continuous-Integration"&gt;https://github.com/zephyrproject-rtos/zephyr/wiki/Continuous-Integration&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.zephyrproject.org/latest/develop/application/index.html"&gt;https://docs.zephyrproject.org/latest/develop/application/index.html&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;(archived)&amp;nbsp;&lt;a href="https://github.com/NordicPlayground/nrf-docker"&gt;https://github.com/NordicPlayground/nrf-docker&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I hope these can be helpful. And let me know if you have any follow-up questions after checking those out&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: West silently failing to clone repo in Azure DevOps Pipeline</title><link>https://devzone.nordicsemi.com/thread/537692?ContentTypeID=1</link><pubDate>Mon, 02 Jun 2025 13:55:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d0516b3-0ee2-459d-b17c-d224590f641e</guid><dc:creator>CurtisHx2</dc:creator><description>&lt;p&gt;Looks like I screwed up with my analysis of what was going on.&amp;nbsp; West is pulling down the project with west init. I was mis-reading the logs.&lt;/p&gt;
&lt;p&gt;I would still like to know if there&amp;#39;s any general guidelines for using nRF Connect in a CI/CD system.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>