West 'build' command not found from Jenkins

Hi,

I've installed ncs manually following this guide: Installing manually — nRF Connect SDK 2.0.99 documentation (nordicsemi.com) and then set the following environment variables:

ZEPHYR_TOOLCHAIN_VARIANT=zephyr
ZEPHYR_SDK_INSTALL_DIR=/opt/zephyr-sdk-0.14.2
ZEPHYR_BASE=/home/username/ncs-v2.0.2/zephyr

It is a Ubuntu machine running Jenkins.

When calling 'west build ...' logged as 'username' all works fine. The problem is when logged as 'jenkins' or running a jenkins script, west cannot detect the 'extra' commands like build, and the following error is showed:

west: error: argument <command>: invalid choice: 'build' (choose from 'init', 'update', 'list', 'manifest', 'diff', 'status', 'forall', 'help', 'config', 'topdir', 'selfupdate')

I've cheked that environment variables all also set in 'jenkins' user and it has access to ncs and sdk paths.

Any suggestion?

Thanks and kind regards,

Pedro.

Parents Reply Children
No Data
Related