Skip to content

Commit 3c684a8

Browse files
committed
Fix the markdown
Don't mix markdown and asciidoc
1 parent 922bc65 commit 3c684a8

File tree

1 file changed

+96
-47
lines changed

1 file changed

+96
-47
lines changed

README.md

Lines changed: 96 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ It can poll, fetch, checkout, branch, list, merge, and tag repositories.
1818
* [Extensions](#extensions)
1919
* [Environment Variables](#environment-variables)
2020
* [Properties](#properties)
21-
// * [Pipelines](#pipelines)
22-
// * [Performance Tuning](#performance-tuning)
23-
// * [Reference repositories](#reference-repositories)
2421
* [Combining repositories](#combining-repositories)
2522
* [Bug Reports](#bug-reports)
2623
* [Contributing to the Plugin](#contributing-to-the-plugin)
@@ -48,83 +45,134 @@ JGit becomes available throughout Jenkins once it has been enabled.
4845

4946
### Advanced checkout behaviors
5047

51-
Timeout (in minutes) for checkout operation::
48+
<dl>
49+
50+
<dt>Timeout (in minutes) for checkout operation</dt>
51+
<dd>
5252
Specify a timeout (in minutes) for checkout.
53+
</dd>
54+
55+
</dl>
5356

5457
### Advanced clone behaviours
5558

56-
Fetch tags::
59+
<dl>
60+
61+
<dt>Fetch tags</dt>
62+
<dd>
5763
Deselect this to perform a clone without tags, saving time and disk space when you just want to access what is specified by the refspec.
64+
</dd>
5865

59-
Honor refspec on initial clone::
66+
<dt>Honor refspec on initial clone</dt>
67+
<dd>
6068
Perform initial clone using the refspec defined for the repository.
6169
This can save time, data transfer and disk space when you only need to access the references specified by the refspec.
70+
</dd>
6271

63-
Shallow clone::
72+
<dt>Shallow clone</dt>
73+
<dd>
6474
Perform shallow clone.
6575
Git will not download the complete history of the project, saving time and disk space when you just want to access the latest version of a repository.
76+
</dd>
6677

67-
Shallow clone depth::
78+
<dt>Shallow clone depth</dt>
79+
<dd>
6880
Set shallow clone depth to the specified numebr of commits.
6981
Git will only download that many commits from the remote repository, saving time and disk space.
82+
</dd>
7083

71-
[[clone-reference-repository-path,reference repository path]]
72-
Path of the reference repo to use during clone::
84+
<dt id="clone-reference-repository-path">Path of the reference repo to use during clone</dt>
85+
<dd>
7386
Specify a folder containing a repository that will be used by git as a reference during clone operations.
7487
This option will be ignored if the folder is not available on the agent.
88+
</dd>
7589

76-
Timeout (in minutes) for clone and fetch operations::
90+
<dt>Timeout (in minutes) for clone and fetch operations</dt>
91+
<dd>
7792
Specify a timeout (in minutes) for clone and fetch operations.
93+
</dd>
94+
95+
</dl>
7896

7997
### Advanced sub-modules behaviours
8098

81-
Disable submodules processing::
99+
<dl>
100+
101+
<dt>Disable submodules processing</dt>
102+
<dd>
82103
Ignore submodules in the repository.
104+
</dd>
83105

84-
Recursively update submodules::
106+
<dt>Recursively update submodules</dt>
107+
<dd>
85108
Retrieve all submodules recursively.
86109
Without this option, submodules which contain other submodules will ignore the contained submodules.
110+
</dd>
87111

88-
Update tracking submodules to tip of branch::
112+
<dt>Update tracking submodules to tip of branch</dt>
113+
<dd>
89114
Retrieve the tip of the configured branch in .gitmodules.
115+
</dd>
90116

91-
Use credentials from default remote of parent repository::
117+
<dt>Use credentials from default remote of parent repository</dt>
118+
<dd>
92119
Use credentials from the default remote of the parent project.
93120
Submodule updates do not use credentials by default.
94121
Enabling this extension will provide the parent repository credentials to each of the submodule repositories.
95122
Submodule credentials require that the submodule repository must accept the same credentials as the parent project.
96123
If the parent project is cloned with https, then the authenticated submodule references must use https as well.
97124
If the parent project is cloned with ssh, then the authenticated submodule references must use ssh as well.
125+
</dd>
98126

99-
Shallow clone::
127+
<dt>Shallow clone</dt>
128+
<dd>
100129
Perform shallow clone of submodules.
101130
Git will not download the complete history of the project, saving time and disk space.
131+
</dd>
102132

103-
Shallow clone depth::
133+
<dt>Shallow clone depth</dt>
134+
<dd>
104135
Set shallow clone depth for submodules.
105136
Git will only download recent history of the project, saving time and disk space.
137+
</dd>
106138

107-
Path of the reference repo to use during submodule update::
139+
<dt id="submodule-reference-repository-path">Path of the reference repo to use during submodule update</dt>
140+
<dd>
108141
Folder containing a repository that will be used by git as a reference during submodule clone operations.
109142
This option will be ignored if the folder is not available on the agent running the build.
110143
A reference repository may contain multiple subprojects.
111144
See the [combining repositories](#combining-repositories) section for more details.
145+
</dd>
112146

113-
Timeout (in minutes) for submodules operations::
147+
<dt>Timeout (in minutes) for submodules operations</dt>
148+
<dd>
114149
Specify a timeout (in minutes) for submodules operations.
115150
This option overrides the default timeout.
151+
</dd>
116152

117-
Number of threads to use when updating submodules::
153+
<dt>Number of threads to use when updating submodules</dt>
154+
<dd>
118155
Number of parallel processes to be used when updating submodules.
119156
Default is to use a single thread for submodule updates
157+
</dd>
158+
159+
</dl>
120160

121161
### Calculate changelog against a specific branch
122162

123-
Name of repository::
163+
<dl>
164+
165+
<dt>Name of repository</dt>
166+
<dd>
124167
Name of the repository, such as origin, that contains the branch.
168+
</dd>
125169

126-
Name of branch::
170+
<dt>Name of branch</dt>
171+
<dd>
127172
Name of the branch used for the changelog calculation within the named repository.
173+
</dd>
174+
175+
</dl>
128176

129177
### Checkout to a sub-directory
130178

@@ -133,10 +181,16 @@ If left empty, the workspace root itself will be used.
133181

134182
### Checkout to specific local branch
135183

136-
Branch name::
184+
<dl>
185+
186+
<dt>Branch name</dt>
187+
<dd>
137188
If given, checkout the revision to build as HEAD on the named branch.
138-
If value is an empty string or "**", then the branch name is computed from the remote branch without the origin.
189+
If value is an empty string or "\*\*", then the branch name is computed from the remote branch without the origin.
139190
In that case, a remote branch origin/master will be checked out to a local branch named master, and a remote branch origin/develop/new-feature will be checked out to a local branch named develop/newfeature.
191+
</dd>
192+
193+
</dl>
140194

141195
### Clean after checkout
142196

@@ -169,53 +223,48 @@ Pipeline is the robust and feature-rich way to checkout from multiple repositori
169223

170224
### Custom user name/e-mail address
171225

172-
user.name::
226+
<dl>
227+
228+
<dt>user.name</dt>
229+
<dd>
173230
Defines the user name value which git will assign to new commits made in the workspace.
174231
If given, `git config user.name [this]` is called before builds.
175232
This overrides values from the global settings.
233+
</dd>
176234

177-
user.email::
235+
<dt>user.email</dt>
236+
<dd>
178237
Defines the user email value which git will assign to new commits made in the workspace.
179238
If given, `git config user.email [this]` is called before builds.
180239
This overrides whatever is in the global settings.
240+
</dd>
181241

182-
// ### Don't trigger a build on commit notifications
183-
// ### Force polling using workspace
184-
// ### Git LFS pull after checkout
185-
// ### Merge before build
186-
// ### Polling ignores commits from certain users
187-
// ### Polling ignores commits in certain paths
188-
// ### Polling ignores commits with certain messages
242+
</dl>
189243

190244
### Prune stale remote tracking branches
191245

192246
Runs `git remote prune` for each remote to prune obsolete local branches.
193247

194-
// ### Sparse checkout paths
195-
// ### Strategy for choosing what to build
196-
197248
### Use commit author in changelog
198249

199250
The default behavior is to use the Git commit's "Committer" value in build changesets.
200251
If this option is selected, the git commit's "Author" value is used instead.
201252

202-
// ### Wipe out repository and force clone
203-
204253
## Environment Variables
205254

206255
## Properties
207256

208257
Some git plugin settings can only be controlled from command line properties set at Jenkins startup.
209258

210-
Default timeout::
211-
The default initial git timeout value can be overridden through the property `org.jenkinsci.plugins.gitclient.Git.timeOut` (see [JENKINS-11286](https://issues.jenkins-ci.org/browse/JENKINS-11286)).
212-
The property should be set on both master and agent to have effect (see [JENKINS-22547](https://issues.jenkins-ci.org/browse/JENKINS-22547)).
213-
214-
// ## Pipelines
259+
<dl>
215260

216-
// ## Performance Tuning
261+
<dt>Default timeout</dt>
262+
<dd>
263+
The default initial git timeout value can be overridden through the property `org.jenkinsci.plugins.gitclient.Git.timeOut` (see JENKINS-11286) ).
264+
The property should be set on both master and agent to have effect (see JENKINS-22547).
265+
</dd>
217266

218-
// ### Reference repositories
267+
</dl>
219268

220269
### Combining repositories
221270

@@ -232,8 +281,8 @@ $ git fetch --all
232281
```
233282

234283
Those commands will create a single bare repository which includes the current commits from all three repositories.
235-
If that reference repository is used in the advanced clone options <<clone-reference-repository-path>>, it will reduce data transfer and disc use for the parent repository.
236-
If that reference repository is used in the submodule options <<submodule-reference-repository-path>>, it will reduce data transfer and disc use for the submodule repositories.
284+
If that reference repository is used in the advanced clone options [clone reference repository](#clone-reference-repository-path), it will reduce data transfer and disc use for the parent repository.
285+
If that reference repository is used in the submodule options [clone reference repository](#submodule-reference-repository-path), it will reduce data transfer and disc use for the submodule repositories.
237286

238287
## Bug Reports
239288

0 commit comments

Comments
 (0)