We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jenkins已经装了ssh、docker、git、jdk、maven等插件
# 安装依赖 echo '安装依赖' yarn install # 删除打包文件 echo '删除打包文件' rm -rf ./dist # 打包 echo '打包' yarn run build # 复制 echo '复制./dist至docker' cp -r ./dist ./docker/dist
echo "备份docker" cp -r /home/coach-web/docker /home/coach-web/docker-$BUILD_TIMESTAMP echo "启动ssh传送docker文件" echo "删除旧的docker" rm -rf /home/nickms-web/docker echo "启动ssh传送docker文件"
echo "进入docker" cd /home/coach-web/docker echo "停止服务" docker-compose stop coach-web echo "删除原始的coach-web" docker-compose rm -f coach-web echo "删除原始的coach-web镜像" docker rmi -f coach-web:latest echo "构建" docker build -t coach-web:latest . echo "运行" docker-compose up -d echo "完成"
到这应该可以成功不是咯,但我遇到个问题 [Exec timed out or was interrupted after 120,000 ms] Build step 'Send build artifacts over SSH' changed build result to UNSTABLE
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Jenkins docker-compose自动构建React并发布
约定
jenkins已经装了ssh、docker、git、jdk、maven等插件
1.创建一个自由风格的软件项目,命名为sangoes-web,点击确定.
2.配置项目描述,丢弃规则
3.点击git,配置git文件,url,用户名密码等
4.配置node构建环境,选择在系统配置里面配置好的node
5.点击构建选择执行shell
6.点击构建后,选择send build articfacts over ssh,备份旧的文件
7.点击add transfer set,运行docker
到这应该可以成功不是咯,但我遇到个问题
[Exec timed out or was interrupted after 120,000 ms] Build step 'Send build artifacts over SSH' changed build result to UNSTABLE
解决方案,点击(send build articfacts over ssh)高级,设置Exec timeout 420000
The text was updated successfully, but these errors were encountered: