PDA

View Full Version : Conditionally add file to VSS


mwthomas
02-19-2004, 06:58 PM
After completing a build, I want to check the executables into VSS. But if the execuatables are not in VSS already, I want to add them. Additionally, some executables are in VSS, and a new executable, or resource file, etc. is added in a later release, I want to automatically add the new file to VSS as well.

I was thinking of doing a checkin and allowing that to fail and in the fail step add the missing file. But then, once the problem has been corrected, I would need to go back to the original script and continue where it left off.

Can anyone provide suggestions on how i can do this?

Thanks!

kinook
02-19-2004, 07:47 PM
Mark the check-in step to Ignore Failure. Put the Add step next, with a conditional build rule to build only if %LASTSTEP_STATUS% is not equal to 0.