It is not possible to reimage build agent as the build step. If you need clean agent instance to run tests, you can use Cloud Solutions. When build starts it can create a new virtual machine from an image. Such machines will be destroyed (after the build is finished or an idle timeout elapses). Another option is to use Docker/Vagtrant containers. For example please take a look at third-party plugin (see the related blog post). Also please vote for the feature request: https://youtrack.jetbrains.com/issue/TW-38023.
Hi Mike,
It is not possible to reimage build agent as the build step. If you need clean agent instance to run tests, you can use Cloud Solutions.
When build starts it can create a new virtual machine from an image. Such machines will be destroyed (after the build is finished or an idle timeout elapses).
Another option is to use Docker/Vagtrant containers. For example please take a look at third-party plugin (see the related blog post). Also please vote for the feature request: https://youtrack.jetbrains.com/issue/TW-38023.