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
Copy file name to clipboardExpand all lines: README.md
+199Lines changed: 199 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -241,15 +241,214 @@ Pipeline is the robust and feature-rich way to checkout from multiple repositori
241
241
242
242
</dl>
243
243
244
+
### Don't trigger a build on commit notifications
245
+
246
+
If checked, this repository will be ignored when the notifyCommit URL is accessed regardless of if the repository matches or not.
247
+
248
+
### Force polling using workspace
249
+
250
+
The git plugin polls remotely using `ls-remote` when configured with a single branch (no wildcards!).
251
+
When this extension is enabled, the polling is performed from a cloned copy of the workspace instead of using `ls-remote`.
252
+
253
+
If this option is selected, polling will use a workspace instead of using `ls-remote`.
254
+
255
+
### Git LFS pull after checkout
256
+
257
+
Enable [git large file support](https://git-lfs.github.com/) for the workspace by pulling large files after the checkout completes.
258
+
Requires that the master and each agent performing an LFS checkout have installed the `git lfs` command.
259
+
260
+
### Merge before build
261
+
262
+
These options allow you to perform a merge to a particular branch before building.
263
+
For example, you could specify an integration branch to be built, and to merge to master.
264
+
In this scenario, on every change of integration, Jenkins will perform a merge with the master branch, and try to perform a build if the merge is successful.
265
+
It then may push the merge back to the remote repository if the Git Push post-build action is selected.
266
+
267
+
<dl>
268
+
269
+
<dt>Name of repository</dt>
270
+
<dd>
271
+
Name of the repository, such as `origin`, that contains the branch.
272
+
If left blank, it'll default to the name of the first repository configured.
273
+
</dd>
274
+
275
+
<dt>Branch to merge to</dt>
276
+
<dd>
277
+
The name of the branch within the named repository to merge to, such as `master`.
278
+
</dd>
279
+
280
+
<dt>Merge strategy</dt>
281
+
<dd>
282
+
Merge strategy selection. Choices include:
283
+
<ul>
284
+
<li>default</li>
285
+
<li>resolve</li>
286
+
<li>recursive</li>
287
+
<li>octopus</li>
288
+
<li>ours</li>
289
+
<li>subtree</li>
290
+
<li>recursive_theirs</li>
291
+
</ul>
292
+
</dd>
293
+
294
+
<dt>Fast-forward mode</dt>
295
+
<dd>
296
+
<ul>
297
+
<li>`--ff`: fast-forward which gracefully falls back to a merge commit when required</li>
298
+
<li>`--ff-only`: fast-forward without any fallback</li>
299
+
<li>`--no-ff`: merge commit always, even if a ast-forwardwould have been allowed</li>
300
+
</ul>
301
+
</dd>
302
+
303
+
</dl>
304
+
305
+
### Polling ignores commits from certain users
306
+
307
+
These options allow you to perform a merge to a particular branch before building.
308
+
For example, you could specify an integration branch to be built, and to merge to master.
309
+
In this scenario, on every change of integration, Jenkins will perform a merge with the master branch, and try to perform a build if the merge is successful.
310
+
It then may push the merge back to the remote repository if the Git Push post-build action is selected.
311
+
312
+
<dl>
313
+
314
+
<dt>Excluded Users</dt>
315
+
<dd>
316
+
If set and Jenkins is configured to poll for changes, Jenkins will ignore any revisions committed by users in this list when determining if a build should be triggered.
317
+
This can be used to exclude commits done by the build itself from triggering another build, assuming the build server commits the change with a distinct SCM user.
318
+
Using this behaviour will preclude the faster git `ls-remote` polling mechanism, forcing polling to require a workspace, as if you had selected the Force polling using workspace extension as well.
319
+
320
+
<p>Each exclusion uses literal pattern matching, and must be separated by a new line.</p>
321
+
</dd>
322
+
323
+
</dl>
324
+
325
+
### Polling ignores commits in certain paths
326
+
327
+
If set and Jenkins is configured to poll for changes, Jenkins will pay attention to included and/or excluded files and/or folders when determining if a build needs to be triggered.
328
+
329
+
Using this behaviour will preclude the faster remote polling mechanism, forcing polling to require a workspace thus sometimes triggering unwanted builds, as if you had selected the Force polling using workspace extension as well.
330
+
This can be used to exclude commits done by the build itself from triggering another build, assuming the build server commits the change with a distinct SCM user.
331
+
Using this behaviour will preclude the faster git `ls-remote` polling mechanism, forcing polling to require a workspace, as if you had selected the Force polling using workspace extension as well.
332
+
333
+
<dl>
334
+
335
+
<dt>Included Regions</dt>
336
+
<dd>
337
+
Each inclusion uses [java regular expression pattern matching](https://docs.oracle.com/javase/8/docs/api/java/util/regex/Pattern.html), and must be separated by a new line.
338
+
An empty list implies that everything is included.
339
+
</dd>
340
+
341
+
<dt>Excluded Regions</dt>
342
+
<dd>
343
+
Each exclusion uses [java regular expression pattern matching](https://docs.oracle.com/javase/8/docs/api/java/util/regex/Pattern.html), and must be separated by a new line.
344
+
An empty list excludes nothing.
345
+
</dd>
346
+
347
+
</dl>
348
+
349
+
### Polling ignores commits with certain messages
350
+
351
+
<dl>
352
+
353
+
<dt>Excluded Messages</dt>
354
+
<dd>
355
+
If set and Jenkins is set to poll for changes, Jenkins will ignore any revisions committed with message matched to Pattern when determining if a build needs to be triggered.
356
+
This can be used to exclude commits done by the build itself from triggering another build, assuming the build server commits the change with a distinct message.
<p>You can create more complex patterns using embedded flag expressions.
361
+
362
+
<p><code>(?s).*FOO.*</code>
363
+
364
+
<p>This example will search FOO message in all comment lines.
365
+
366
+
</dd>
367
+
368
+
</dl>
369
+
244
370
### Prune stale remote tracking branches
245
371
246
372
Runs `git remote prune` for each remote to prune obsolete local branches.
247
373
374
+
### Sparse Checkout paths
375
+
376
+
Specify the paths that you'd like to sparse checkout.
377
+
This may be used for saving space (Think about a reference repository).
378
+
Be sure to use a recent version of Git, at least above 1.7.10.
379
+
380
+
Multiple sparse checkout path values can be added to a single job.
381
+
382
+
<dt>Path</dt>
383
+
<dd>
384
+
File or directory to be included in the checkout
385
+
</dd>
386
+
387
+
</dl>
388
+
389
+
### Polling ignores commits in certain paths
390
+
391
+
If set and Jenkins is configured to poll for changes, Jenkins will pay attention to included and/or excluded files and/or folders when determining if a build needs to be triggered.
392
+
393
+
Using this behaviour will preclude the faster remote polling mechanism, forcing polling to require a workspace thus sometimes triggering unwanted builds, as if you had selected the Force polling using workspace extension as well.
394
+
This can be used to exclude commits done by the build itself from triggering another build, assuming the build server commits the change with a distinct SCM user.
395
+
Using this behaviour will preclude the faster git `ls-remote` polling mechanism, forcing polling to require a workspace, as if you had selected the Force polling using workspace extension as well.
396
+
397
+
<dl>
398
+
399
+
<dt>Included Regions</dt>
400
+
<dd>
401
+
Each inclusion uses [java regular expression pattern matching](https://docs.oracle.com/javase/8/docs/api/java/util/regex/Pattern.html), and must be separated by a new line.
402
+
An empty list implies that everything is included.
403
+
</dd>
404
+
405
+
<dt>Excluded Regions</dt>
406
+
<dd>
407
+
Each exclusion uses [java regular expression pattern matching](https://docs.oracle.com/javase/8/docs/api/java/util/regex/Pattern.html), and must be separated by a new line.
408
+
An empty list excludes nothing.
409
+
</dd>
410
+
411
+
</dl>
412
+
413
+
### Strategy for choosing what to build
414
+
415
+
When you are interested in using a job to build multiple branches, you can choose how Jenkins chooses the branches to build and the order they should be built.
416
+
417
+
This extension point in Jenkins is used by many other plugins to control the job as it builds specific commits.
418
+
When you activate those plugins, you may see them installing a custom build strategy.
419
+
420
+
<dl>
421
+
422
+
<dt>Ancestry</dt>
423
+
<dd>
424
+
<code>Maximum Age of Commit</code>: The maximum age of a commit (in days) for it to be built. This uses the GIT_COMMITTER_DATE, not GIT_AUTHOR_DATE
425
+
<p><code>Commit in Ancestry</code>: If an ancestor commit (sha1) is provided, only branches with this commit in their history will be built.
426
+
</dd>
427
+
428
+
<dt>Default</dt>
429
+
<dd>
430
+
Build all the branches that match the branch namne pattern.
431
+
</dd>
432
+
433
+
<dt>Inverse</dt>
434
+
<dd>
435
+
Build all branches <b>except</b> for those which match the branch specifiers configure above.
436
+
This is useful, for example, when you have jobs building your master and various release branches and you want a second job which builds all new feature branches.
437
+
For example, branches which do not match these patterns without redundantly building master and the release branches again each time they change.
438
+
</dd>
439
+
440
+
</dl>
441
+
248
442
### Use commit author in changelog
249
443
250
444
The default behavior is to use the Git commit's "Committer" value in build changesets.
251
445
If this option is selected, the git commit's "Author" value is used instead.
252
446
447
+
### Wipe out repository and force clone
448
+
449
+
Delete the contents of the workspace before build and before checkout.
450
+
This deletes the git repository inside the workspace and will force a full clone.
0 commit comments