Add a withGit pipeline step that provides git credentials

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      It would be nice if we had a withGit step that would pre-configure the git credentials from the current "scm" object and allows us to invoke git from the command line as follows:

      withGit {
         sh 'git fetch'
      }

      The step would rely on the same GIT_ASKPASS mechanism as used during a "standard" checkout.

       

        1. withGit.groovy
          3 kB
        2. utils.groovy
          2 kB
        3. rmdir.groovy
          0.4 kB
        4. mktemp.groovy
          0.6 kB

            Assignee:
            Unassigned
            Reporter:
            Bertrand Renuart
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: