You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue: Errors like the below happen when a build fails on the deployment stage.
19:24:56 UTC ERROR: Failed to clean the workspace
19:24:56 UTC java.io.IOException: Unable to delete '/var/lib/jenkins/jobs/Clients/jobs/<client_name>/branches/dev/workspace'. Tried 3 times (of a maximum of 3) waiting 0.1 sec between attempts.
Solution:
Since the cleanup stage happens at the beginning and end of builds it needs to be assumed that the previous build failed. We should run all builds as non-root users in the container or better yet run all builds as user jenkins. This would allow the main build process to delete the workspace without changing or requiring extra file permissions.
The text was updated successfully, but these errors were encountered:
Issue: Errors like the below happen when a build fails on the deployment stage.
Solution:
Since the cleanup stage happens at the beginning and end of builds it needs to be assumed that the previous build failed. We should run all builds as
non-root
users in the container or better yet run all builds as userjenkins
. This would allow the main build process to delete the workspace without changing or requiring extra file permissions.The text was updated successfully, but these errors were encountered: