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!
BuildMaster get files from GIT failed
-
Hello all ,
I am performing source code fetch form git to BuildMaster , but I have the following error :
Unhandled exception: System.NotSupportedException: A hosted agent must be used with the built-in LibGitSharp git client.
at Inedo.Extensions.Clients.LibGitSharp.Remote.RemoteLibGitSharpClient..ctor(IRemoteJobExecuter jobExecuter, String workingDirectory, Boolean simulation, CancellationToken cancellationToken, GitRepositoryInfo repository, ILogSink log) in C:\ProgramData\BuildMaster\Temp\Service_E20753\Src\Git\Common\Clients\LibGitSharp\Remote\RemoteLibGitSharpClient.cs:line 20
at Inedo.Extensions.Operations.GitOperation.CreateClient(IOperationExecutionContext context, String repositoryUrl, WorkspacePath workspacePath) in C:\ProgramData\BuildMaster\Temp\Service_E20753\Src\Git\Common\Operations\GitOperation.cs:line 66
at Inedo.Extensions.Operations.GetSourceOperation.<ExecuteAsync>d__20.MoveNext() in C:\ProgramData\BuildMaster\Temp\Service_E20753\Src\Git\Common\Operations\GetSourceOperation.cs:line 69
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Inedo.Extensions.Git.Operations.GeneralGetSourceOperation.<ExecuteAsync>d__18.MoveNext() in C:\ProgramData\BuildMaster\Temp\Service_E20753\Src\Git\Git.InedoExtension\Operations\GeneralGetSourceOperation.cs:line 67
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Inedo.BuildMaster.Windows.ServiceApplication.Executions.PlanExecuter.BuildMasterExecuter.<ExecuteActionAsync>d__49.MoveNext()Anyone has an idea ?
Kr ,
Andry
-
Ah, you must be running this against a Linux-based server; I don't the error message is very clear, so I've already changed it in the code); hopefully this is more clear now:
To use Git-based operations on Linux/SSH-based servers, you must specify a path for the Git executable. This can be configured on the operation, or by creating a variable named $DefaultGitExePath, which you can scope to the server, role, etc.
-
@apxltd thanks for the reply it works fine for me
I ve just put git , as it is available globally everywhere by default in all of our servers
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