Files and logs are moved when they are added to a context. However,
this will fail if there are multiple processes trying to move
artifacts from one context to another.
This commit modifies the context module to copy files and logs
instead of moving them.
return 1
fi
- if ! mv "$file" "$file_path/."; then
+ if ! cp "$file" "$file_path/."; then
return 1
fi
return 1
fi
- if ! mv "$log" "$logdir/."; then
+ if ! cp "$log" "$logdir/."; then
return 1
fi