Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

Unable to get source from Team Services Online GIT Repository



  • Here are the steps I took.

    1. Created an Alternate Credential in my profile of Team Services
    2. Created a Generic Git Credential in BuildMaster
    3. Git Credential points to https://[ourcompany].visualstudio.com/DefaultCollection/_git/[Repository]
    4. Created a Plan using the following Git-GetSource (Credentials: TFSGIT, Branch: master);

    Received the following error:

    INFO : 2017-10-10 16:11:20Z - Getting source from 'https://[hidden].visualstudio.com/DefaultCollection/_git/[hidden]' on 'master' branch...
    ERROR: 2017-10-10 16:11:20Z - This operation requires a valid server context. Use a "for server ..." block to set the server context.
    DEBUG: 2017-10-10 16:11:20Z - Cleaning up...
    DEBUG: 2017-10-10 16:11:20Z - Cleanup complete.

    Product: BuildMaster
    Version: 5.6.11



  • Wrap the operation in a for server block:

    for server localhost 
    {
        Git-GetSource (Credentials: TFSGIT, Branch: master);
    }


  • That was too easy and it was right there in the error message. I need a facepalm emoji right now. Thanks for the quick response!



Inedo Website HomeSupport HomeCode of ConductForums GuideDocumentation