git账号需要对该仓库有权限,否则会提示
无法连接仓库:Command "git ls-remote -h http://192.168.36.70/front/project/micro-project.git HEAD" returned status code 128:
stdout:
stderr: fatal: Authentication failed for 'http://192.168.36.70/front/project/micro-project.git/'
构建
构建选择执行shell
source /etc/profile #声明环境变量
pnpm install --no-frozen-lockfile #安装
npm run build
cd subProject
rm -rf project-front.tar.gz
tar -zcvf project-front.tar.gz * #压缩
cd ..
rm -rf node_modules
构建后的操作:Send build artifacts over SSH
cd /home/env_demo/front
mv project-front.tar.gz hndksp
cd project-front
rm -rf 覆盖的文件夹
mkdir 覆盖的文件夹
tar -zxvf project-front.tar.gz -C project