My apologies for not clearly defining the problem earlier.
The build artifacts that are getting archived (and that should be
controlled by the 'Discard Old Builds' setting) are not getting
deleted despite setting the limit to any particular number (say, 10).
No issues with the workspace as it gets cleaned up before each build
(as intended).
Please provide any pointers regarding this.
Thanks,
Anubhaw
On Apr 29, 3:36 am, Sami Tikka <
sjti...@gmail.com> wrote:
> Jenkins does not store the builds in the workspace.
>
> When you configure Jenkins to archive build artifacts, they are copied away from the workspace. These artifacts, and build logs and test results are controlled by the Discard Old Builds setting.
>
> If you have old builds in the workspace, you probably have not set up anything to clean the workspace from files from previous builds. You could check the box under SCM settings to clean the workspace before building. (This setting is in the SCM part of the job configuration because every SCM plugin has their own way of doing it.)
>
> There is also a delete workspace plugin, which is useful for builds that do not use SCM.
>
> -- Sami
>