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.
- Created an Alternate Credential in my profile of Team Services
- Created a Generic Git Credential in BuildMaster
- Git Credential points to https://[ourcompany].visualstudio.com/DefaultCollection/_git/[Repository]
- 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 serverblock: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!
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login