Permission denied when moving directory to $CIRCLE_ARTIFACTS

I am getting a “permission denied” error after trying to move a test coverage directory to $CIRCLE_ARTIFACTS. Am I doing something wrong or is this a bug?

mv ./coverage $CIRCLE_ARTIFACTS
mv: cannot move ‘./coverage’ to ‘/tmp/circle-artifacts.mRyoLZF/coverage’: Permission denied

mv ./coverage $CIRCLE_ARTIFACTS returned exit code 1


    - mv ./coverage $CIRCLE_ARTIFACTS


    - sudo mv ./coverage $CIRCLE_ARTIFACTS

fixed the problem

1 Like