$ remove-item -Force -Recurse D:\ASC_web\A00051\dutyManagement\pc* $ xcopy "dist" "D:\ASC_web\A00051\dutyManagement\pc" /s/e/y/ Does D:\ASC_web\A00051\dutyManagement\pc specify a file name or directory name on the target (F = file, D = directory)? Does D:\ASC_web\A00051\dutyManagement\pc specify a file name or directory name on the target (F = file, D = directory)? Uploading artifacts for failed job ERROR: Job failed: exit status 1