-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Major
-
Component/s: tfs-plugin
-
None
-
Environment:Platform: All, OS: All
****If checked, Hudson will not delete the workspace at *end of each build,
making the build faster. But this causes the artifacts from the previous build
to remain when a new build starts.*****
I would assume this means that "if unchecked, Hudson will delete the workspace
at the end of each build...."
We need to reference the workspace in our msbuild task (during the build), but
the workspace has already been deleted while performing the build using the
msbuild task. I would expect that if the checkbox was unchecked, it would wait
until after the MSBuild task completes before deleting the workspace.
It's important that we have the workspace mapped while running MSBuild, because
we are checking-out a build file, incrementing build version, and checking-in
during the build task. Once the workspace is deleted, even if we create a new
workspace in the same location, it doesn't detect that the file is mapped in
the workspace.
I would love to just leave the workspace out there, but that would not make our
internal auditors very happy knowing there's an outside possibility the build
succeeded without the latest source.
Here is the log:
[workspace] $ e:\tfs\tf.exe workspace -new "<NAME>" -noprompt -
server:http://<SERVER> ********
[workspace] $ e:\tfs\tf.exe workfold map $/<MAPPING> ./<FOLDER> "
workspace:<WORKSPACE>" -server:<SERVER> ********
[workspace] $ e:\tfs\tf.exe get ./<FOLDER> -recursive -noprompt ********
E:\Hudson\.hudson\jobs\<Project>\workspace\:
Getting <FOLDER>
E:\Hudson\.hudson\jobs\<Project>\workspace\<FOLDER>:
Getting Bin
....
[workspace] $ e:\tfs\tf.exe history $/<MAPPING> -noprompt -version:<VERSION> -
recursive -format:detailed -server:<SERVER>
********
No history entries were found for the item and version combination specified.
[workspace] $ e:\tfs\tf.exe workfold -unmap ./<FOLDER> "-workspace:<WORKSPACE>"
********
[workspace] $ e:\tfs\tf.exe workspace -delete "<WORKSPACE>" -server:<SERVER>
********
Path To MSBuild.exe: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\msbuild.exe
Executing command: hudson.util.ArgumentListBuilder@15b1b88
[NAV] $ cmd.exe /C C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
\msbuild.exe /logger:FileLogger,Microsoft.Build.Engine;logfile=<LOGFILE> /target
:<TARGET> <PROJ>.proj && exit %%ERRORLEVEL%%
....