Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean workspace fails #4

Open
cpitkin opened this issue Oct 29, 2018 · 0 comments
Open

Clean workspace fails #4

cpitkin opened this issue Oct 29, 2018 · 0 comments
Assignees
Labels

Comments

@cpitkin
Copy link
Contributor

cpitkin commented Oct 29, 2018

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.

@cpitkin cpitkin added the bug label Oct 29, 2018
@cpitkin cpitkin self-assigned this Oct 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant