I want to create automatic build using CI in bitbucket pipeline.
I would like to use image NordicPlayground/nrf-docker to compile the project. I saw the article Build NCS application firmware images using Docker - Getting Started - nRF Connect SDK guides - Nordic DevZone (nordicsemi.com).
The usage of this image looks like:
docker run --name ncs --rm -v ${PWD}:/workdir/ncs/fw-nrfconnect-nrf ncs /bin/bash -c 'cd ncs/fw-nrfconnect-nrf/applications/asset_tracker; west build -p always -b nrf9160_pca20035ns'
But I would like to first run the image, and inside run the west build command.
There is my example runner configuration.
pipelines: default: - step: name: 'Build' image: nordicplayground/nrfconnect-sdk:v2.5-branch runs-on: - self.hosted - linux script: - echo "Building start" - west --version
And on output i got:
+ west --version bash: west: command not found