bitbucket-pipelines - 更改管道 bitbucket 中的目录
问题描述
我的文件夹结构:
-backend
-frontend
我的 reactapp 放在frontend
目录中。
image: node:10.15.3
pipelines:
default:
- step:
caches:
- node
script: # Modify the commands below to build your repository.
- yarn install
- yarn test
- yarn build
这个失败了。我如何去前端目录运行它?
解决方案
Bitbucket Pipeline 在一个 bitbucket 云服务器中运行。
因此,与使用本地命令行界面类似,您可以使用cd, mkdir
.
image: node:10.15.3
pipelines:
default:
- step:
caches:
- node
script: # Modify the commands below to build your repository.
- cd frontend
- yarn install
- yarn test
- yarn build
- cd ../ #if you need to go back
#Then,probably you will need to deploy your app, so you can use:
- apt-get update
- apt-get -qq install git-ftp
- git ftp push --user $FTP_USERNAME --passwd $FTP_PASSWORD $FTP_HOST
如果您需要测试 yml 文件的语法,请在此处尝试
推荐阅读
- c++ - 如何避免boost的野兽中的body_limit错误并正确处理大消息
- javascript - 从内部的已知链接中选择容器 DIV
- c - C内核模块程序交叉编译错误
- kubernetes - 如何修复“503 服务暂时不可用”
- layout - jupyter notebook中布局ipywidgets的控制
- python - Python / Django - Mypy:表达式的类型为“Type[ModelInstance]”,变量的类型为“ModelInstance”
- android - Unity android manifest FPS 提升
- android - 手机上的活动应用程序的 React Native 列表并阻止另一个应用程序的启动
- xamarin - 在 xamarin 表单中创建自定义框架
- ios - 当 iPhone 配套应用程序终止时,Apple Watch 通知操作不起作用 watch OS 5.3.2