Our pipelines are:
Unit test (which include, install packages, run a lot of test cases, generate cache files, etc).
If the unit test works fine, I need a step to refresh the environment as new (remove all cache and generated files)
Then I can run
docker build from the fresh code directly.
How to do that? How to set the pipeline to clean the environment first, then run the
docker build command?