jenkinsci / jenkinsci/git-plugin

[JENKINS-75162] inadequate documentation for gitSCM module

Open
#3,870 3 comments 0 reactions 0 assignees View on GitHub
component:git-plugin imported-jira-issue priority:minor resolution:unresolved
Dominant language
Java
Stars
694
Forks
1.1k
Avg merge
1h 29m
Merged PRs (30d)
3

Description

I'm trying to use

checkout gitSCM (some arguments here)

I see that one example, given at

https://www.jenkins.io/doc/pipeline/steps/params/scmgit/

is

checkout scmGit(userRemoteConfigs: [ [ url: 'https://github.com/jenkinsci/git-plugin' ] ])

Higher up in the page, it mentions,

" Refer to the git plugin documentation for detailed descriptions of options available to the checkout step"

But the referenced page is unusable for this sort of purpose.

I just want to find out what other things can be used in "userRemoteConfigs".

In the referenced page, I see various random examples of that used.

But nowhere do I see a concise reference of the approximate format,

"For userRemoteConfigs, here are the possible options and syntax.

  url: url to the remote repo

  xyz: ....

  abc: ....

"

---
Originally reported by pbrownrobo, imported from: inadequate documentation for gitSCM module


  • status: Open
  • priority: Minor
  • component(s): git-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 2
  • imported: 2025-12-02

Raw content of original issue

I'm trying to use
checkout gitSCM (some arguments here)

I see that one example, given at
https://www.jenkins.io/doc/pipeline/steps/params/scmgit/
is

checkout scmGit(userRemoteConfigs: [ [ url: 'https://github.com/jenkinsci/git-plugin' ] ])

Higher up in the page, it mentions,

" Refer to the git plugin documentation for detailed descriptions of options available to the checkout step"

But the referenced page is unusable for this sort of purpose.

I just want to find out what other things can be used in "userRemoteConfigs".

In the referenced page, I see various random examples of that used.
But nowhere do I see a concise reference of the approximate format,

"For userRemoteConfigs, here are the possible options and syntax.

  url: url to the remote repo
  xyz: ....
  abc: ....
"

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.