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
Create a Repository on bitbucket with a Jenkinsfile that Jenkins has access to and create a task for that repository
Create a new branch with changes and push to the remote bitbucket
Configure Branch source to "Merge" with target before running the pipeline
Commit to the main branch with changes and push to remote bitbucket
Create a pull request on the repository
Jenkins will create the detached head of the merge and run the pipeline
Jenkins will leave this detached head in the workspace of Jenkins Master, cluttering its workspace in its @script folders
Expected Results
Merged head being removed from the Jenkins Master after the operation is finished.
Clean Workspace commands working to remove these files from Jenkins Master.
Actual Results
Jenkins Master being cluttered with detached heads until the disc space explodes.
Anything else?
An option to clear the script workspace for configuration could help a lot.
Are you interested in contributing a fix?
There may be already a fix but I haven't seen it.
The text was updated successfully, but these errors were encountered:
Hi, we have the same problem on our build systems, cluttering up jenkins controller nodes in k8s as the controller workspaces do not get cleaned up. This leads to us having to perform several manual cleanups weekly.
This can really 'explode' the disk usage, as we have several repos that are > 1GB with several hundreds of PR builds a day.
Merged head being removed from the Jenkins Master after the operation is finished.
The expectation is not correct, the strategy is about what checkout, Any kind of workspace cleanup are delegated to traits like Check out to matching local branch or Check out to matching local branch ( I do not think Clean after checkout will work for you).
Let me know if one of these traits works.
Jenkins and plugins versions report
Environment
What Operating System are you using (both controller, and any agents involved in the problem)?
Distributor ID: Ubuntu
Description: Ubuntu 20.04.6 LTS
Reproduction steps
@script
foldersExpected Results
Merged head being removed from the Jenkins Master after the operation is finished.
Clean Workspace commands working to remove these files from Jenkins Master.
Actual Results
Jenkins Master being cluttered with detached heads until the disc space explodes.
Anything else?
An option to clear the script workspace for configuration could help a lot.
Are you interested in contributing a fix?
There may be already a fix but I haven't seen it.
The text was updated successfully, but these errors were encountered: