Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to force non Desktop Build with MSBuild/TFS2008?
    primarykey
    data
    text
    <p><strong>Scenario:</strong></p> <p>I have a TFS Build (TFS2008) that has several targets override: <strong>BuildNumberOverrideTarget, AfterGet, BeforeCompileConfiguration, AfterCompileConfiguration, AfterCompile, AfterDropBuild and AfterEndToEndIteration</strong>. Everything works fine.</p> <p>But now I am porting all CI to Jenkins server. I use MSBuild plugin to invoke TFSBuild.proj using these parameters:</p> <blockquote> <p>/fileLogger /fileLoggerParameters:LogFile=TFSBuild_DesktopBuild.log;Create;Encoding=UTF-8;verbosity=normal /verbosity:normal </p> </blockquote> <p><strong>Problem Description:</strong></p> <p>My problem is that only some of the custom tasks are being executed: <strong>BeforeCompileConfiguration, AfterCompileConfiguration, AfterCompile</strong>.</p> <p>As you can see I need <strong>BuildNumberOverrideTarget, AfterGet, AfterDropBuild and AfterEndToEndIteration</strong> to be executed.</p> <p><em>It seems like only compile task and custom tasks about it are being executed. The build being triggered from TFS is treated as Non Desktop Build while the build being triggered from Jenkins is treated as Desktop Build.</em></p> <p><strong>What I have tried until now.</strong></p> <p>If I run the build from a local .cmd file, same behaviour happens. So I think is a problem with IsDesktopBuild property. Further reading of this <a href="http://msdn.microsoft.com/en-us/library/ms181292%28v=vs.90%29.aspx" rel="nofollow">msdn link</a> gave me the clue to when read </p> <blockquote> <p>"Only the compilation and testing (if they are enabled) are performed"</p> </blockquote> <p>. So I have tried to add property myself to force a DesktopBuild:</p> <blockquote> <p>/fileLogger /fileLoggerParameters:LogFile=TFSBuild_DesktopBuild.log;Create;Encoding=UTF-8;verbosity=normal /verbosity:normal <strong>/property:IsDesktopBuild=true</strong></p> </blockquote> <p>But behavior is the same, only executed tasks: <strong>BeforeCompileConfiguration, AfterCompileConfiguration, AfterCompile</strong></p> <p><strong>So my question is double:</strong></p> <ol> <li>Anyone know how to force a Desktop Build from command line? (Seems that <em>/property:IsDesktopBuild=true</em> is not enough)</li> <li>If IsDesktopBuild is not the problem, any idea of clue on why some custom tasks are not triggering?</li> </ol>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload