Every job in my workflow needs access to source code, and I have to repeat - checkout
step every time. Is it possible to checkout out code once and then just share it among the jobs?
I tried to use workspaces
steps:
- checkout
- persist_to_workspace:
root: .
Which fails with The specified paths did not match any files in /root/project
.
- persist_to_workspace:
root: $CIRCLE_WORKING_DIRECTORY
Fails with Error locating workspace root directory: stat /root/project/$CIRCLE_WORKING_DIRECTORY: no such file or directory