I have several projects in my TFS collection and I want to perform checkin during build of one of the project. I have build template and I'd like to use tf.exe with InvokeProcess activity. But how can I specify source files and destination project folder in command-line arguments of tf.exe? Or I need copy files manually to destination project folder?
2
votes
How did you check out the files? Did you, for example, check out in a different workspace than the one used during build / as a different user?
- pantelif
I didn't check out the files. Is it possible to check in something without check out?
- user1016945
It is possible to add to source control new items. But if a source module exists, you need to first check out in order to check in
- pantelif
1 Answers
1
votes
You should be able to set the WorkingDirectory property of the InvokeProcess Activity to the folder where your Workspace on the server is. You may need to the ConvertWorkspaceItem(s) Activity to convert it to a physical path on the server (i.e. C:\Code from $/Server/Code). If you've not done this before, you may need to create a Sequence activity to perform the 2 steps; you can then store the output of ConvertWorkspaceItem in a variable scoped to the Sequence, and use it as the WorkingDirectory of the InvokeProcess.