Permission denied when moving directory to $CIRCLE_ARTIFACTS


#1

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

#2

replaced

    - mv ./coverage $CIRCLE_ARTIFACTS

with

    - sudo mv ./coverage $CIRCLE_ARTIFACTS

fixed the problem


#3