-
Improvement
-
Resolution: Unresolved
-
Minor
-
None
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.
- relates to
-
JENKINS-28335 Pipeline step to run Git commands with credentials & tool
-
- In Review
-
[JENKINS-47733] Add a withGit pipeline step that provides git credentials
Assignee | Original: Mark Waite [ markewaite ] |
Component/s | New: git-plugin [ 15543 ] | |
Component/s | Original: git-client-plugin [ 17423 ] |
Link | New: This issue is related to JENKINS-28335 [ JENKINS-28335 ] |
Attachment | New: withGit.groovy [ 43504 ] |
Attachment | New: mktemp.groovy [ 43509 ] |
Attachment | New: utils.groovy [ 43510 ] |
Attachment | New: rmdir.groovy [ 43511 ] |
Summary | Original: withGit pipeline step | New: Add a withGit pipeline step that provides git credentials |
Link | New: This issue duplicates JENKINS-28335 [ JENKINS-28335 ] |
Resolution | New: Duplicate [ 3 ] | |
Status | Original: Open [ 1 ] | New: Closed [ 6 ] |