Linux主机上安装node
apt install curl gnupg2 -y
curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash
jenkins cmd
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
nvm install 16.13.0
nvm use 16.13.0
node -v
yarn install --registry=http://nexus.mirror.com.cn/repository/npm-group/
yarn run build
mkdir /opt/iios-builds/fe-builds/${JOB_BASE_NAME}/ -p
rm /opt/iios-builds/fe-builds/${JOB_BASE_NAME}/* -rf
mv dist/* /opt/iios-builds/fe-builds/${JOB_BASE_NAME}