- 
                Notifications
    
You must be signed in to change notification settings  - Fork 48
 
Jenkins clean-after-build support #664
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
Conversation
The workspaces of Jenkins jobs can use quite a lot of disk space. Especially if the --clean option is active, this is most probably not needed because the workspace is clean at jobs start anyway. Add an extended option to control the post-build clean behaviour.
          Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@            Coverage Diff             @@
##           master     #664      +/-   ##
==========================================
+ Coverage   89.03%   89.05%   +0.02%     
==========================================
  Files          50       50              
  Lines       16137    16157      +20     
==========================================
+ Hits        14367    14389      +22     
+ Misses       1770     1768       -2     ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
  | 
    
| 
           Can this be added for the local build backend as well? ;)  | 
    
          
 Interesting idea. I'm not sure if this really works. On Jenkins, the result is either uploaded or stored directly in the Jenkins job. For local builds, that's instead everything below   | 
    
          
 In our environment we have the local build backend running in a gitlab-ci pipeline...on a cluster based system with pre allocated resources... Since we do not know and can not request enough resources for all possible build scenarios the build sometimes fails due to exceeded resource limits - mostly filesystem usage. Such an option could help us there I guess.  | 
    
| 
           I see. That makes sense. I'm afraid this will be tricky compared to the Jenkins backend. There is no internal tracking yet of which workspaces are still required during the build. I guess in your case you only need the final package(s) and want to discard all dependencies? Or keep all dist workspaces?  | 
    
| 
           In the end I only need the final packages. But keeping the dist packages would also be sufficient. This is not a very important feature - using the cache and a couple of retries is a viable workaround. It just came to my mind reading this PR 😉  | 
    
No description provided.