Ask a questionAsk a question
 

General Discussionworkspace mismatch in nightly build

  • Wednesday, November 04, 2009 8:28 AMKim Carlsen Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Hi
    Using tfs 2008 sp1 I have a strange issue:
    I have two buildjobs, that share some code in two workspaces. The common code include a versionnumber that needs to be incrementet.
    The buildjobs are trigged to start at a specific time. The first build completes without errors, but the second fails saying it can't update the files because the server holds a newer version.
    If I start the job manually in the same order, it won't fail....

    In both buildjobs I have:
    In BuildNumberOverrideTarget:

    <Exec WorkingDirectory="$(SJcommonPath)\include" Command="%22$(TeamBuildRefPath)\..\tf.exe%22 get version.txt /force /overwrite" />
    returns this in the log file:
     Replacing version.txt

    And in AfterGet:
    <Exec WorkingDirectory="$(SJcommonPath)\include" Command="%22$(TeamBuildRefPath)\..\tf.exe%22 checkout version.txt" />
    returns this in the log file:

      version.txt
     
    $/.../Include/version.txt:
       newer version exists in source control

    What am I doing wrong?

    Regards
    Kim

    • Changed TypeRuiz YiModeratorTuesday, November 10, 2009 2:48 AMCustomer is unresponsive
    •  

All Replies

  • Friday, November 06, 2009 9:25 AMRuiz YiModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi Kim,

    Sorry that I did not understand you well.

    What is the function of "version.txt"? just store the version num? why not use a custom task to get/create the version num?

    Could you post the 2 TFSBuild.proj ?

    Best Regards,
    Ruiz

    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Sincerely, Ruiz Yi
  • Tuesday, November 10, 2009 2:48 AMRuiz YiModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    We are changing the issue type to “Comment” because you have not followed up with the necessary information. If you have more time to look at the issue and provide more information, please feel free to change the issue type back to “Question” by editing your initial post and changing the radio button at the top of the post editor window. If the issue is resolved, we will appreciate it if you can share the solution so that the answer can be found and used by other community members having similar questions.
    Thank you!

     


    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Sincerely, Ruiz Yi
  • Tuesday, November 10, 2009 7:13 AMKim Carlsen Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi

    Thanks.
    I've solved the problem by putting an ekstra get into afterget target.

    Regards
    kim