History

Fixed MasterBuild.buildproj script so that tf get can be executed when ForceBuild is false if the script detects that there have been changes.

gsfbuildbot committed 11 years ago

Commit fe7d72d1 parent 7feebcb1 file · +10 −13Browse files

Showing the changes to Build/Scripts (1 of 1 file). Show all

Unified · Split

Build/Scripts/MasterBuild.buildproj+10−13
@@ -351,24 +351,14 @@ · 350 unmodified lines
351 </Target>351 </Target>
352 352
353 <Target Name="AfterCreateWorkspace"/>353 <Target Name="AfterCreateWorkspace"/>
354 <Target Name="BeforePopulateWorkspace"/>354
355 355 <Target Name="BeforePopulateWorkspace" Condition="'$(ForceBuild)' != 'true'">
356 <Target Name="CorePopulateWorkspace">
357 <!-- Get version file for the most recent version. -->356 <!-- Get version file for the most recent version. -->
358 <Message Condition="'$(ForceBuild)' != 'true'" Text="Checking for changes to project since last build..."/>357 <Message Condition="'$(ForceBuild)' != 'true'" Text="Checking for changes to project since last build..."/>
359 <Exec Condition="'$(ForceBuild)' != 'true' And '$(TfsUserName)' == ''" Command="%22$(TfsClient)%22 get %22$(VersionFile)%22 /force /recursive /noprompt"/>358 <Exec Condition="'$(ForceBuild)' != 'true' And '$(TfsUserName)' == ''" Command="%22$(TfsClient)%22 get %22$(VersionFile)%22 /force /recursive /noprompt"/>
360 <Exec Condition="'$(ForceBuild)' != 'true' And '$(TfsUserName)' != ''" Command="%22$(TfsClient)%22 get %22$(VersionFile)%22 /force /recursive /noprompt /login:$(TfsUserName),$(TfsPassword)"/>359 <Exec Condition="'$(ForceBuild)' != 'true' And '$(TfsUserName)' != ''" Command="%22$(TfsClient)%22 get %22$(VersionFile)%22 /force /recursive /noprompt /login:$(TfsUserName),$(TfsPassword)"/>
361 <CallTarget Targets="CheckForChanges"/>360
362
363 <!-- Get source code for the specified version. -->
364 <Message Condition="'$(ForceBuild)' == 'true'" Text="Getting source code..."/>
365 <Exec Condition="'$(ForceBuild)' == 'true' And '$(TfsUserName)' == ''" Command="%22$(TfsClient)%22 get %22$(LocalFolder)%22 /version:$(SourceVersion) /force /recursive /noprompt"/>
366 <Exec Condition="'$(ForceBuild)' == 'true' And '$(TfsUserName)' != ''" Command="%22$(TfsClient)%22 get %22$(LocalFolder)%22 /version:$(SourceVersion) /force /recursive /noprompt /login:$(TfsUserName),$(TfsPassword)"/>
367 </Target>
368
369 <Target Name="CheckForChanges" Condition="'$(ForceBuild)' != 'true'">
370 <!-- Check for new changes since the last build. -->361 <!-- Check for new changes since the last build. -->
371 <Message Text="Checking for changes..."/>
372 <ReadLinesFromFile File="$(VersionFile)">362 <ReadLinesFromFile File="$(VersionFile)">
373 <Output TaskParameter="Lines" ItemName="VersionNumber"/>363 <Output TaskParameter="Lines" ItemName="VersionNumber"/>
374 </ReadLinesFromFile>364 </ReadLinesFromFile>
@@ -382,6 +372,13 @@ · 7 unmodified lines
382 <Message Text="Build is skipped - No new changes." Condition="'$(ForceBuild)' != 'true'"/>372 <Message Text="Build is skipped - No new changes." Condition="'$(ForceBuild)' != 'true'"/>
383 </Target>373 </Target>
384 374
375 <Target Name="CorePopulateWorkspace" Condition="'$(ForceBuild)' == 'true'">
376 <!-- Get source code for the specified version. -->
377 <Message Text="Getting source code..."/>
378 <Exec Condition="'$(TfsUserName)' == ''" Command="%22$(TfsClient)%22 get %22$(LocalFolder)%22 /version:$(SourceVersion) /force /recursive /noprompt"/>
379 <Exec Condition="'$(TfsUserName)' != ''" Command="%22$(TfsClient)%22 get %22$(LocalFolder)%22 /version:$(SourceVersion) /force /recursive /noprompt /login:$(TfsUserName),$(TfsPassword)"/>
380 </Target>
381
385 <Target Name="AfterPopulateWorkspace"/>382 <Target Name="AfterPopulateWorkspace"/>
386 <Target Name="BeforeVersionSource"/>383 <Target Name="BeforeVersionSource"/>
387 384

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t