我的文件夹结构:
-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
这失败了。如何转到frontend-directory来运行它?
答案 0 :(得分:1)
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文件的语法,请try here