You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<dtid="clone-reference-repository-path">Path of the reference repo to use during clone</dt>
85
+
<dd>
73
86
Specify a folder containing a repository that will be used by git as a reference during clone operations.
74
87
This option will be ignored if the folder is not available on the agent.
88
+
</dd>
75
89
76
-
Timeout (in minutes) for clone and fetch operations::
90
+
<dt>Timeout (in minutes) for clone and fetch operations</dt>
91
+
<dd>
77
92
Specify a timeout (in minutes) for clone and fetch operations.
93
+
</dd>
94
+
95
+
</dl>
78
96
79
97
### Advanced sub-modules behaviours
80
98
81
-
Disable submodules processing::
99
+
<dl>
100
+
101
+
<dt>Disable submodules processing</dt>
102
+
<dd>
82
103
Ignore submodules in the repository.
104
+
</dd>
83
105
84
-
Recursively update submodules::
106
+
<dt>Recursively update submodules</dt>
107
+
<dd>
85
108
Retrieve all submodules recursively.
86
109
Without this option, submodules which contain other submodules will ignore the contained submodules.
110
+
</dd>
87
111
88
-
Update tracking submodules to tip of branch::
112
+
<dt>Update tracking submodules to tip of branch</dt>
113
+
<dd>
89
114
Retrieve the tip of the configured branch in .gitmodules.
115
+
</dd>
90
116
91
-
Use credentials from default remote of parent repository::
117
+
<dt>Use credentials from default remote of parent repository</dt>
118
+
<dd>
92
119
Use credentials from the default remote of the parent project.
93
120
Submodule updates do not use credentials by default.
94
121
Enabling this extension will provide the parent repository credentials to each of the submodule repositories.
95
122
Submodule credentials require that the submodule repository must accept the same credentials as the parent project.
96
123
If the parent project is cloned with https, then the authenticated submodule references must use https as well.
97
124
If the parent project is cloned with ssh, then the authenticated submodule references must use ssh as well.
125
+
</dd>
98
126
99
-
Shallow clone::
127
+
<dt>Shallow clone</dt>
128
+
<dd>
100
129
Perform shallow clone of submodules.
101
130
Git will not download the complete history of the project, saving time and disk space.
131
+
</dd>
102
132
103
-
Shallow clone depth::
133
+
<dt>Shallow clone depth</dt>
134
+
<dd>
104
135
Set shallow clone depth for submodules.
105
136
Git will only download recent history of the project, saving time and disk space.
137
+
</dd>
106
138
107
-
Path of the reference repo to use during submodule update::
139
+
<dtid="submodule-reference-repository-path">Path of the reference repo to use during submodule update</dt>
140
+
<dd>
108
141
Folder containing a repository that will be used by git as a reference during submodule clone operations.
109
142
This option will be ignored if the folder is not available on the agent running the build.
110
143
A reference repository may contain multiple subprojects.
111
144
See the [combining repositories](#combining-repositories) section for more details.
145
+
</dd>
112
146
113
-
Timeout (in minutes) for submodules operations::
147
+
<dt>Timeout (in minutes) for submodules operations</dt>
148
+
<dd>
114
149
Specify a timeout (in minutes) for submodules operations.
115
150
This option overrides the default timeout.
151
+
</dd>
116
152
117
-
Number of threads to use when updating submodules::
153
+
<dt>Number of threads to use when updating submodules</dt>
154
+
<dd>
118
155
Number of parallel processes to be used when updating submodules.
119
156
Default is to use a single thread for submodule updates
157
+
</dd>
158
+
159
+
</dl>
120
160
121
161
### Calculate changelog against a specific branch
122
162
123
-
Name of repository::
163
+
<dl>
164
+
165
+
<dt>Name of repository</dt>
166
+
<dd>
124
167
Name of the repository, such as origin, that contains the branch.
168
+
</dd>
125
169
126
-
Name of branch::
170
+
<dt>Name of branch</dt>
171
+
<dd>
127
172
Name of the branch used for the changelog calculation within the named repository.
173
+
</dd>
174
+
175
+
</dl>
128
176
129
177
### Checkout to a sub-directory
130
178
@@ -133,10 +181,16 @@ If left empty, the workspace root itself will be used.
133
181
134
182
### Checkout to specific local branch
135
183
136
-
Branch name::
184
+
<dl>
185
+
186
+
<dt>Branch name</dt>
187
+
<dd>
137
188
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.
139
190
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>
140
194
141
195
### Clean after checkout
142
196
@@ -169,53 +223,48 @@ Pipeline is the robust and feature-rich way to checkout from multiple repositori
169
223
170
224
### Custom user name/e-mail address
171
225
172
-
user.name::
226
+
<dl>
227
+
228
+
<dt>user.name</dt>
229
+
<dd>
173
230
Defines the user name value which git will assign to new commits made in the workspace.
174
231
If given, `git config user.name [this]` is called before builds.
175
232
This overrides values from the global settings.
233
+
</dd>
176
234
177
-
user.email::
235
+
<dt>user.email</dt>
236
+
<dd>
178
237
Defines the user email value which git will assign to new commits made in the workspace.
179
238
If given, `git config user.email [this]` is called before builds.
180
239
This overrides whatever is in the global settings.
240
+
</dd>
181
241
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>
189
243
190
244
### Prune stale remote tracking branches
191
245
192
246
Runs `git remote prune` for each remote to prune obsolete local branches.
193
247
194
-
// ### Sparse checkout paths
195
-
// ### Strategy for choosing what to build
196
-
197
248
### Use commit author in changelog
198
249
199
250
The default behavior is to use the Git commit's "Committer" value in build changesets.
200
251
If this option is selected, the git commit's "Author" value is used instead.
201
252
202
-
// ### Wipe out repository and force clone
203
-
204
253
## Environment Variables
205
254
206
255
## Properties
207
256
208
257
Some git plugin settings can only be controlled from command line properties set at Jenkins startup.
209
258
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>
215
260
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>
217
266
218
-
// ### Reference repositories
267
+
</dl>
219
268
220
269
### Combining repositories
221
270
@@ -232,8 +281,8 @@ $ git fetch --all
232
281
```
233
282
234
283
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.
0 commit comments