Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    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

    Scheduled Pinned Locked Moved Support
    3 Posts 2 Posters 6 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F Offline
      foeliharivony_8107
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • apxltdA Offline
        apxltd inedo-engineer
        last edited by atripp

        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.

        Founder and CEO, Inedo

        F 1 Reply Last reply Reply Quote 0
        • F Offline
          foeliharivony_8107 @apxltd
          last edited by

          @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

          1 Reply Last reply Reply Quote 0

          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
          • 1 / 1
          • First post
            Last post
          Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation