Commit Graph

8 Commits

Author SHA1 Message Date
Imran Malik 4167cc5dbd Add depth option to git shallow-clone
- Use convert xml for shallow-clone and depth

Change-Id: I92d4bd2ded6db66bb608aed480e873e29e7b9474
2018-06-14 22:07:35 -04:00
Jeff Grafton cdfeb7bf66 Update Git SCM so that extensions are configured correctly.
Many configuration options have been extensions for at least 2 years, so
update the generated XML to actually configure these options.

Change-Id: Ic22ca4a6b8d61c977979a5eb63a2e884dc4391bd
2016-06-06 13:35:04 -07:00
Paul Sokolovsky ff248cdfc7 Make git.timeout parameter set clone timeout too.
Git plugin has few fine-grained timeout settings, with jenkins-job-builder
setting only checkout timeout. Make the same timeout apply for clone
operations too.

Based on https://storyboard.openstack.org/#!/story/2000372

Change-Id: Id01d413bef7ffa3a069cc1000c923e1bd9ad9ff5
Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
2015-10-28 16:07:41 +03:00
Thanh Ha 7d44c58aa2 Update SCM Git Clean configuration to use new extensions style
Use the extensions style configuration for setting the SCM Git clean
configuration. With this format we deprecate the older (clean: bool)
configuration format and replace it with this format:

clean:
    after: bool
    before: bool

The older configuration is still supported so users who did not update
their YAML files can upgrade without updating all their YAML files first.

Change-Id: I1cfc0e2951c2b4de5e67bcb8abdf0b8c070e7fc6
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
2015-02-03 21:52:20 -05:00
Thanh Ha d7c37c89a8 Update SCM Wipe workspace to use extensions style
Use the newer extensions style configuration for the SCM Wipe workspace
option. This change simply changes the output style of this
configuration leaving the original YAML configuration values in tact so
it is backwards compatible with the old style configuration for
wipe-workspace setting.

While this patch still sets the old <wipeOutWorkspace> value long with
the new extensions value. Jenkins appears to be happy with both values
present and prefers the extensions format if it exists. This should
allow the older Jenkins that only supports the older config format to
continue to work.

Change-Id: Ib5b1809d19a35f83f524ee84b18f0c58b851c70b
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
2015-02-03 21:49:57 -05:00
Guido Günther 0268581fca git: Support timeout option
This requires git plugin version 2.2.3

Change-Id: I24a2bce00e35f74a5c513d02a7bffe05267cd498
2014-08-14 21:39:05 +02:00
Christian Hofstaedtler 8999a87c13 Add support for 'ignore-notify' in git SCM
This option is named "Don't trigger a build on commit notifications"
in the Jenkins Web UI.

Change-Id: I338af61f8bfdef1545d1ea206e6874cda38957cd
2014-07-27 00:41:04 +02:00
Khai Do bf3218193b make scm test as the example
scm module had a few existing tests so now those tests are the examples.

Change-Id: Iaf039a5bb6f3910b09198e4a800a94f3f58804f9
2014-01-31 20:56:48 +00:00