Build management
The Builds page of Validate allows you to perform build management tasks such as:
- view a list of builds for a selected project
- filter the build list
- rename builds (if you want to label a milestone build, for example)
- delete builds
- set up a build retention policy
- view the build log
To access the builds page, click a project in the Project list and click Builds.
Setting up a build retention policy
The space required to store integration build analysis data can grow very large over time. To save disk space, you can:
- delete individual builds in Validate, with validate admin delete-build, or with the Web API
- enable automatic build deletion
In order to enable automatic build deletion, you need to have the Project admin role.
When you set a build retention policy, you set the number of builds to keep. By default, Validate keeps 20 builds. You can also prevent specific builds from being deleted; these builds are not included in the count of builds to keep. For example, if you set the threshold to keep 30 builds and also prevent 10 builds from being deleted, Validate will keep 40 builds.
Automatically delete old builds
- Log in to Validate, if you haven't already done so.
- If you're not viewing the Projects list, click Projects at the top left.
- Click a project in the list. The project details are displayed.
- In the project details, click Builds.
- Select auto-delete old builds.
- You now see the default threshold setting.
- To change this number, click the pencil icon and enter another number.
The old builds you set to be deleted are automatically removed the next time you create a build.
validate admin set-project-property MyProject auto_delete_threshold 10
To turn off automatic build deletion with validate admin, pass a null value for auto_delete_threshold
:
validate admin set-project-property MyProject auto_delete_threshold " "
Prevent a specific build from being deleted
When you enable automatic build deletion, you may want to prevent specific builds from being automatically deleted (for instance, iteration or milestone builds).
- If you're not viewing the Projects list, click Projects at the top left.
- Click a project in the list. The project details are displayed.
- In the project details, click Builds.
- Click the pencil icon to the left of the build.
- Select do not auto-delete this build.