<?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 build command in CI/CD pipeline</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/97286/west-build-command-in-ci-cd-pipeline</link><description>Dear all, 
 I do want to ensure the quality of my BLE FW by adding a CI pipeline in azure. 
 However, I&amp;#39;m having a hard time getting &amp;quot;west build&amp;quot; command to work in any other terminal than the nRF connect terminal (would for instance like to run the command</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 03 Mar 2023 10:50:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/97286/west-build-command-in-ci-cd-pipeline" /><item><title>RE: west build command in CI/CD pipeline</title><link>https://devzone.nordicsemi.com/thread/413218?ContentTypeID=1</link><pubDate>Fri, 03 Mar 2023 10:50:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33b9d6b1-2e52-4ae1-9418-eeb0893b00a0</guid><dc:creator>B3rni</dc:creator><description>&lt;p&gt;Ah, I see. Despite also&amp;nbsp;doing an install using the Toolchain Manager I am having a separate Python instance installed, and I also installed west manually for it.&lt;/p&gt;
&lt;p&gt;&amp;quot;Installing over the Toolchain Manager &lt;span&gt;will install all Python dependencies into a local environment in the Toolchain Manager app, not the system.&amp;quot;&amp;nbsp;&lt;/span&gt;(explained here:&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/getting_started/recommended_versions.html"&gt;Requirements &amp;mdash; nRF Connect SDK 2.3.99 documentation (nordicsemi.com)&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;I had a look at my installation and found the path where this local Python instance is located (assuming the default path setup by the Toolchain manager):&amp;nbsp;C:\ncs\toolchains\v2.2.0\opt\bin&lt;/p&gt;
&lt;p&gt;In the Scripts folder at this location (&lt;span&gt;C:\ncs\toolchains\v2.2.0\opt\bin\Scripts)&amp;nbsp;&lt;/span&gt;the west.exe is located.&lt;/p&gt;
&lt;p&gt;I tested the following myself. Adding both of these paths to the Path environment variable should make it work. Adding the path of the Scripts folder is needed to find west.exe and the bin folder needs to be added that Python itself is found.&lt;/p&gt;
&lt;p&gt;However, I am not sure if this is the best way to do this. In case you are doing something else with Python on your PC&amp;nbsp; this version will be used and also new packages will be installed to this local Python version created by the Toolchain Manager.&lt;/p&gt;
&lt;p&gt;Probably it may be better to manually install Python on the System and install west (&lt;code&gt;&lt;span class="n"&gt;pip3&lt;/span&gt; &lt;span class="n"&gt;install&lt;/span&gt; &lt;/code&gt;&lt;span class="n"&gt;&lt;code&gt;west&lt;/code&gt;) and add the paths of the system Python installation and the scripts folder of this installation (where the west.exe than should be located) to the Path variable.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: west build command in CI/CD pipeline</title><link>https://devzone.nordicsemi.com/thread/413198?ContentTypeID=1</link><pubDate>Fri, 03 Mar 2023 10:03:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c45dc284-a36d-4dbd-986c-bef2112a7170</guid><dc:creator>mahq</dc:creator><description>&lt;p&gt;Yes and that is perhaps my main question. I have installed the nrf sdk via the toolchain manager and the nrf-extensions in vs-code. I have netither installed python nor west manually on my computer and I cant find the west-path (the default path that the nrf sets up when installing via toolchain manager) where can i find this path?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: west build command in CI/CD pipeline</title><link>https://devzone.nordicsemi.com/thread/413186?ContentTypeID=1</link><pubDate>Fri, 03 Mar 2023 09:39:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:157b0270-ab33-46b4-9881-62448aa89ff5</guid><dc:creator>B3rni</dc:creator><description>&lt;p&gt;Yes, in this case it seems that you have to set an environment variable as west is found. This is described in the section&amp;nbsp;&amp;ldquo;&amp;lsquo;west&amp;rsquo; is not recognized as an internal or external command, operable program or batch file.&amp;rsquo;&amp;quot; under the link I provided you.&lt;/p&gt;
&lt;p&gt;Check where your west.exe is located, most likely it is in your python scripts folder. (I have it here:&amp;nbsp;C:\Users\Bernhard\AppData\Local\Programs\Python\Python310\Scripts). In case it is there, this folder should be added to your path variable.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: west build command in CI/CD pipeline</title><link>https://devzone.nordicsemi.com/thread/413181?ContentTypeID=1</link><pubDate>Fri, 03 Mar 2023 09:20:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:222dece1-8e59-4a09-87d9-247bf67ef685</guid><dc:creator>mahq</dc:creator><description>&lt;p&gt;Hello, thanks for the reply.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;My main concern is that the west-command isn&amp;#39;t working in any other terminal than the nrf connect terminal.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1677835151247v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1677835224454v3.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So I assume that i must update the environmental path for this, though i&amp;#39;m uncertain which path to specify&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: west build command in CI/CD pipeline</title><link>https://devzone.nordicsemi.com/thread/413178?ContentTypeID=1</link><pubDate>Fri, 03 Mar 2023 09:04:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7e431c0-21ab-4f14-83d6-a5e01dd9f3f3</guid><dc:creator>B3rni</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;what exactly is the problem you are facing?&lt;/p&gt;
&lt;p&gt;One thing that is important that&amp;nbsp;&lt;code&gt;west build&amp;nbsp;&lt;/code&gt;is working is, that it is run from inside a west workspace. So, run it from within the directory of the SDK. Otherwise the &lt;code&gt;build&lt;/code&gt; command is not&amp;nbsp;found, as it is just an extension for &lt;code&gt;west&lt;/code&gt; that is only available in a west workspace that defines this extension.&lt;/p&gt;
&lt;p&gt;How to fix this problem and also others is described here:&amp;nbsp;&lt;a href="https://docs.zephyrproject.org/latest/develop/west/troubleshooting.html"&gt;Troubleshooting West &amp;mdash; Zephyr Project Documentation&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Bernhard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>