locked
How to see a build definition ID RRS feed

  • Question

  • Hi guys, 

    Is there a way to check the build definition ID? It seems it is hidden from end user. 

    Thanks,

    M.


    Msts.cn@Outlook.com

    Thursday, July 11, 2013 4:11 AM

Answers

  • I have a suggestion here… 

    1. Connect to your team project via Web Interface using “http://[SERVER-NAME]:[PORT-NUMBER]/tfs/[COLLECTION-NAME]/[PROJECT-NAME]” 
    2. Then go to Build tab and from the left hand side panel expand build definition and select your build definition. 
    3. Now if you look at the URL in your Internet explorer then it will contain information like… 

    “definitionUri=vstfs%3A%2F%2F%2FBuild%2FDefinition%2F324”

    So here, definitionURI is make HTML friendlier and it has replaced special characters like “:” with “%3A” and “/” with “%2F”.  So above build definition Uri can be read as ….

    “definitionUri=vstfs:///Build/Definition/324”

    And so the last number in the URI “324” is nothing but Build Definition ID. 

    I hope this answers your question and if it does then please mark this reply as answer.

    Best Regards,
    Dharmesh Shah.
    Wanted to automatically generate release notes from TFS ... Why not look at  http://tfschangelog.codeplex.com

    • Marked as answer by Michael ZH Tuesday, July 16, 2013 2:11 AM
    Monday, July 15, 2013 2:51 PM
  • Hi,

    Thanks for your post!

    Can you tell me what versions of Visual Studio do you use currently?

    If you use Visual Studio 2010, in the Team Explorer, select the related build definition, and right click it, and select Properties, there is Url, for example,  vstfs:///Build/Definition/2, the number at the end of the Url is the build definition ID.

    If you use TFS 2012, you can connect to TFS 2012 from VS 2010, and you will see the build definition ID.

    Best Regards,


    Cathy Kong
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Marked as answer by Michael ZH Tuesday, July 16, 2013 2:11 AM
    Friday, July 12, 2013 7:38 AM
    Moderator

All replies

  • Hi,

    I am moving your thread into the  Team Foundation Server - Build and release management  Forum for dedicated support. Thanks for your understanding.

    Best Regards,


    Jack Zhai [MSFT]
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Friday, July 12, 2013 5:55 AM
  • Hi,

    Thanks for your post!

    Can you tell me what versions of Visual Studio do you use currently?

    If you use Visual Studio 2010, in the Team Explorer, select the related build definition, and right click it, and select Properties, there is Url, for example,  vstfs:///Build/Definition/2, the number at the end of the Url is the build definition ID.

    If you use TFS 2012, you can connect to TFS 2012 from VS 2010, and you will see the build definition ID.

    Best Regards,


    Cathy Kong
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Marked as answer by Michael ZH Tuesday, July 16, 2013 2:11 AM
    Friday, July 12, 2013 7:38 AM
    Moderator
  • Hi Moderator,

    Thanks for that!

    What about Visual Studio 2012? I cannot see Properties when I right click the build definition.

    M.


    Msts.cn@Outlook.com

    Friday, July 12, 2013 7:44 AM
  • Hi,

    Thanks for your feedback!

    In Visual Studio 2012, it is not supported for this feature, I would suggest you to feedback this issue on our Connect Portal:

    http://visualstudio.uservoice.com/forums/121579-visual-studio

        Every feedback submitted will be evaluated carefully by our engineers.

    Best Regards,


    Cathy Kong
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Monday, July 15, 2013 7:45 AM
    Moderator
  • I have a suggestion here… 

    1. Connect to your team project via Web Interface using “http://[SERVER-NAME]:[PORT-NUMBER]/tfs/[COLLECTION-NAME]/[PROJECT-NAME]” 
    2. Then go to Build tab and from the left hand side panel expand build definition and select your build definition. 
    3. Now if you look at the URL in your Internet explorer then it will contain information like… 

    “definitionUri=vstfs%3A%2F%2F%2FBuild%2FDefinition%2F324”

    So here, definitionURI is make HTML friendlier and it has replaced special characters like “:” with “%3A” and “/” with “%2F”.  So above build definition Uri can be read as ….

    “definitionUri=vstfs:///Build/Definition/324”

    And so the last number in the URI “324” is nothing but Build Definition ID. 

    I hope this answers your question and if it does then please mark this reply as answer.

    Best Regards,
    Dharmesh Shah.
    Wanted to automatically generate release notes from TFS ... Why not look at  http://tfschangelog.codeplex.com

    • Marked as answer by Michael ZH Tuesday, July 16, 2013 2:11 AM
    Monday, July 15, 2013 2:51 PM
  • I like your suggestion, Dharmesh. Thanks for that!

    M.


    Msts.cn@Outlook.com

    Tuesday, July 16, 2013 2:10 AM