'Build result' — if you want to delete all build results data (including artifacts and build logs). If you choose this option, the following two options are automatically selected.
'Artifacts' — if you want to selectively delete all user-defined artifacts of Jobs in this Plan but keep all other Job build result data (such as build logs).
'Build Logs' — if you want to selectively delete all build logs of Jobs in this Plan but keep all other Job build result data (such as artifacts).
In the Expiry criteria section, use one of the follow three criteria to determine how much Job build result data to keep, by modifying the 'Expiry period' and 'Minimum builds to keep' fields accordingly: In this section, 'Job build results' could refer to artifacts, build logs or both (depending on what you specified in the previous substep).
To keep all Job build results of this Plan up to a certain age, With this method, older Plans could have all their build results deleted.
In the 'Expiry period' field, specify the number of months/weeks/days for which you want to keep your Job build results of this Plan. E.g. specify '24 months' to keep all Job build results for the last two years.
In the 'Minimum builds to keep' field, specify '0'.
To keep a specified (or minimum) number of Job build results of this Plan,
In the 'Expiry period' field, specify '0'.
In the 'Minimum builds to keep' field, specify the number of Job build results of this Plan you want to keep. E.g. specify '50' to keep the latest 50 Job build results.
To keep all Job build results of this Plan up to a certain age and a minimum number of these Job build results,
In the 'Expiry period' field, specify the number of months/weeks/days for which you want to keep your Job build results of this Plan. E.g. specify '24 months' to keep all Job build results for the last two years.
In the 'Minimum builds to keep' field, specify the number of Job build results of this Plan you want to keep. E.g. specify '50' to keep the latest 50 Job build results.
(Hence, even if all Job builds of this Plan are over two years old, the last 50 Job build results will not be deleted.)
If you wish to keep Job build results with particular labels, select the 'Don't expire builds with certain labels' check box. The 'Labels to keep' field will be displayed:
In the 'Labels to keep' field, specify any labels which match the labels applied to Job builds you want to keep. (If you want to specify more than one label, use spaces to separate them.) For any label(s) specified, all Job builds of this Plan which have a matching label will never be deleted, regardless of the Minimum builds to keep and Labels to keep settings.