Skip to content

Conversation

@jkloetzke
Copy link
Member

No description provided.

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
Copy link

codecov bot commented Sep 17, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.05%. Comparing base (6d75dfb) to head (9bc1e2a).
⚠️ Report is 5 commits behind head on master.

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@rhubert
Copy link
Contributor

rhubert commented Sep 18, 2025

Can this be added for the local build backend as well? ;)

@jkloetzke
Copy link
Member Author

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 dev/dist. So it pretty much boils down to rm -rf dev/{src,build} after the build. Not sure if this is worth a new option... 🤔

@rhubert
Copy link
Contributor

rhubert commented Sep 19, 2025

So it pretty much boils down to rm -rf dev/{src,build} after the build. Not sure if this is worth a new option... 🤔

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.

@jkloetzke
Copy link
Member Author

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?

@rhubert
Copy link
Contributor

rhubert commented Sep 19, 2025

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 😉

@jkloetzke jkloetzke merged commit e60f3f0 into BobBuildTool:master Sep 25, 2025
11 checks passed
@jkloetzke jkloetzke deleted the jenkins-clean-after branch September 25, 2025 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants