Persist_to_workspace: Error uploading workspace archive

Hello, we’re experiencing the following erorr with persist_to_workspace.
Actually our network environment is not very stable. This may cause such error. In such case, we normally re-run CI a few more times and this problem will disappear. However, manual re-running consumes our time a lot.

My question is… is there any way to re-try persist_to_workspace when we get such error instead of CI failure?

Error message:

Creating workspace archive...

Uploading workspace archive...

Error uploading workspace archive: Put http://..../circleci-storage/...: read /tmp/workspace-layer-...: file already closed

Thank you in advance.

1 Like