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

git checkout is run without credentials

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      I was wondering if it would be possible to change the git checkout code to execute the git check command with launchCommandWithCredentials(), instead of launchCommandIn().

      With git-lfs 1.4.1, when a checkout occurs, it is smart enough to automatically fetch files. However, since GIT_SSH in unset, the lfs client fails to authenticate and the downloads fail. If we could get GIT_SSH set at checkout, then git-lfs would be able authenticate and the downloads would be successful.

        Attachments

          Issue Links

            Activity

            Hide
            markewaite Mark Waite added a comment -

            Pull request 206 proposes to add git lfs. You might try that pull request to see if it meets your needs.

            Show
            markewaite Mark Waite added a comment - Pull request 206 proposes to add git lfs. You might try that pull request to see if it meets your needs.
            Hide
            pyther Matthew Gyurgyik added a comment -

            Thanks for pointing that out. I tried applying it and I think I was successful, but I'm not sure how to actually set withLFS. I'm not seeing anything in the GUI. :-/

            Show
            pyther Matthew Gyurgyik added a comment - Thanks for pointing that out. I tried applying it and I think I was successful, but I'm not sure how to actually set withLFS. I'm not seeing anything in the GUI. :-/
            Hide
            markewaite Mark Waite added a comment -

            Probably also need the matching git plugin pull request

            Show
            markewaite Mark Waite added a comment - Probably also need the matching git plugin pull request
            Hide
            markewaite Mark Waite added a comment - - edited

            A pre-release of large file support is being tested now. You can download the git client plugin and the git plugin from the lts-with-plugins branch of my docker instance.

            I deeply appreciate comments on the pull request which say "I've installed the pre-release of this plugin and am using it successfully". I also deeply appreciate comments which indicate when a problem has been encountered.

            Show
            markewaite Mark Waite added a comment - - edited A pre-release of large file support is being tested now. You can download the git client plugin and the git plugin from the lts-with-plugins branch of my docker instance. I deeply appreciate comments on the pull request which say "I've installed the pre-release of this plugin and am using it successfully". I also deeply appreciate comments which indicate when a problem has been encountered.
            Hide
            markewaite Mark Waite added a comment -

            Git plugin 3.1.0 released on 4 Mar 2017 now includes support for command line git large file support.

            Git checkout does not run with credentials, rather an additional step has been added which will perform an authenticated

            git lfs pull
            Show
            markewaite Mark Waite added a comment - Git plugin 3.1.0 released on 4 Mar 2017 now includes support for command line git large file support. Git checkout does not run with credentials, rather an additional step has been added which will perform an authenticated git lfs pull

              People

              • Assignee:
                markewaite Mark Waite
                Reporter:
                pyther Matthew Gyurgyik
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: