Im struggling here and hope someone can help me out. I just dont get how the root and path attributes are working together with persist_to_workspace.
I do the following:
- checkout - run: rm -rf .git - persist_to_workspace: root: /root paths: - project
Later I do:
attach_workspace: at: ~/
This works. In my first job I have the workspace at
/home/circleci/project with my everything I need.
Now I build my frontend which gives me a folder at
The only thing I want to do now is persisting this folder at the same path so that its available in the next job who attachs the workspace at
~/project/frontend/build. But however I do the persist_to_workspace the build folder always is at the same level of project.
ls -> project frontend/build
ls -> project/frontend/build
How can I do that?