Details
-
Improvement
-
Status: Open (View Workflow)
-
Minor
-
Resolution: Unresolved
-
None
Description
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.
Attachments
Issue Links
- relates to
-
JENKINS-28335 Pipeline step to run Git commands with credentials & tool
-
- In Review
-
Closing as a duplicate of JENKINS-28335. Refer to the Google Summer of Code project idea proposing how JENKINS-28335 should be implemented.
The project idea needs additional mentors and welcomes additional insights on corner cases that might not be covered by the proposed implementation.