Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-47531

git-lfs: allow specifying separate credentials

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: git-plugin
    • Labels:
      None
    • Environment:
      Jenkins ver. 2.73.2
      Git plugin ver. 3.6.0
    • Similar Issues:

      Description

      I have a git repo, which itself is located on ssh:// remote, but whose [lfs] url points to https:// address.

      When I try to check it out, Jenkins job gets stuck at
      using GIT_SSH to set credentials
      > git lfs pull origin
      command. When I run it manually, I see that it is interactively asking for username and password. I don't see any additional settings for "Git LFS pull after checkout" behavior, so I wonder if it would be possible to allow specifying credentials there?

        Attachments

          Issue Links

            Activity

            Hide
            patricklang2 Patrick Lang added a comment -

            If anyone wants to test this on a branch other than 4.2.2 or master - it should be pretty easy to cherry-pick the code from my PR to the needed branch. The files I modified haven't changed much if at all since 4.2.2 until now.

            Show
            patricklang2 Patrick Lang added a comment - If anyone wants to test this on a branch other than 4.2.2 or master - it should be pretty easy to cherry-pick the code from my PR to the needed branch. The files I modified haven't changed much if at all since 4.2.2 until now.
            Hide
            patricklang2 Patrick Lang added a comment -

            I've had a PR open 29 days - is there anything I can do to help move this along?

            Show
            patricklang2 Patrick Lang added a comment - I've had a PR open 29 days - is there anything I can do to help move this along?
            Hide
            markewaite Mark Waite added a comment -

            If you can provide a publicly accessible LFS test repository that requires separate credentials, that would be a great help. I have no way to test your proposed code change. The only Git LFS implementations available to me are from providers like GitHub and Bitbucket. They don't require a separate credential, so I am unable to test your proposed change. I'm hesitant to accept code changes that I can't test.

            I'm reviewing the git plugin performance improvement project for Google Summer of Code and will likely not get to this proposal until after Google Summer of Code has completed in September.

            Show
            markewaite Mark Waite added a comment - If you can provide a publicly accessible LFS test repository that requires separate credentials, that would be a great help. I have no way to test your proposed code change. The only Git LFS implementations available to me are from providers like GitHub and Bitbucket. They don't require a separate credential, so I am unable to test your proposed change. I'm hesitant to accept code changes that I can't test. I'm reviewing the git plugin performance improvement project for Google Summer of Code and will likely not get to this proposal until after Google Summer of Code has completed in September.
            Hide
            patricklang2 Patrick Lang added a comment -

            Is your CI setup capable of running Docker containers or if not, do the build agents have golang set up? It looks like there may be some test servers that could be used locally.

            Show
            patricklang2 Patrick Lang added a comment - Is your CI setup capable of running Docker containers or if not, do the build agents have golang set up? It looks like there may be some test servers that could be used locally.
            Hide
            markewaite Mark Waite added a comment -

            I'm able to run Docker containers in my working environment.

            Agents do not have golang configured.

            Show
            markewaite Mark Waite added a comment - I'm able to run Docker containers in my working environment. Agents do not have golang configured.

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              mephi42 mephi42
              Votes:
              8 Vote for this issue
              Watchers:
              18 Start watching this issue

                Dates

                Created:
                Updated: