I´m trying to create an incremental build (build only those projects which have changed) in a TFS 2017.3 GIT repo. To achieve this, it´s necessary to set the Clean flag to False in the "Get Sources" task.
Problem comes due to the fact that evey launched build deletes the contain of the artifacts directory in the "Initialize job" step so, build step is not able to find the previous assemblies in order to avoid build again.
Agent version is 2.144.2.
Any idea about how Can I fix it?
Regards
From the docs:
Note that the $(Build.ArtifactStagingDirectory) and $(Common.TestResultsDirectory) are always deleted and recreated prior to every build regardless of any of these settings.
So if you want to keep the artifacts you need to save them in another build directory (s/b/root agent work).