Is it possible to clear some files when team files are fetched from my GIT repo? I modify a file as a build phase, and thus always need a clean version of that file. However, to bring the whole repo all the time, it is really unnecessary because usually only a few files are modified (thus, I did not want to use 'clean all files before build').
Thank you!
To clarify, suppose I have the following structure: - index.html - js / script.js - js / plugins.js
I only always (If any changes have occurred, even if checkout index .html) files in the JS folder, whenever they have any updates on them, I want to change them. If you are using TeamCity 6.5 or above you can use it. Once you add it to your build steps and make it clean, it will clear any new false files created during the construction before the new build begins or at the end of the current build. I prefer to run individually before the new construction will begin, because it allows you to see any output, when there is something wrong with trying to do this work goes. Actually, it ensures that there is nothing in the build agent job folder, not drawn from the repository before each build.
Comments
Post a Comment