Merge "Add git submodule threads"
This commit is contained in:
commit
760d255a54
@ -322,6 +322,8 @@ def git(registry, xml_parent, data):
|
|||||||
during clone (optional)
|
during clone (optional)
|
||||||
* **timeout** (`int`) - Specify a timeout (in minutes) for
|
* **timeout** (`int`) - Specify a timeout (in minutes) for
|
||||||
submodules operations (default 10).
|
submodules operations (default 10).
|
||||||
|
* **threads** (`int`) - Number of parallel processes to be used when
|
||||||
|
updating submodules. Default is to use a single thread for submodule updates.
|
||||||
* **timeout** (`str`) - Timeout for git commands in minutes (optional)
|
* **timeout** (`str`) - Timeout for git commands in minutes (optional)
|
||||||
* **use-author** (`bool`): Use author rather than committer in Jenkin's
|
* **use-author** (`bool`): Use author rather than committer in Jenkin's
|
||||||
build changeset (default false)
|
build changeset (default false)
|
||||||
@ -675,6 +677,7 @@ def git_extensions(xml_parent, data):
|
|||||||
data["submodule"].get("reference-repo", "")
|
data["submodule"].get("reference-repo", "")
|
||||||
)
|
)
|
||||||
XML.SubElement(ext, "timeout").text = str(data["submodule"].get("timeout", 10))
|
XML.SubElement(ext, "timeout").text = str(data["submodule"].get("timeout", 10))
|
||||||
|
XML.SubElement(ext, "threads").text = str(data["submodule"].get("threads", 1))
|
||||||
if "timeout" in data:
|
if "timeout" in data:
|
||||||
ext_name = impl_prefix + "CheckoutOption"
|
ext_name = impl_prefix + "CheckoutOption"
|
||||||
if trait:
|
if trait:
|
||||||
|
@ -46,6 +46,7 @@
|
|||||||
<parentCredentials>false</parentCredentials>
|
<parentCredentials>false</parentCredentials>
|
||||||
<reference/>
|
<reference/>
|
||||||
<timeout>10</timeout>
|
<timeout>10</timeout>
|
||||||
|
<threads>1</threads>
|
||||||
</hudson.plugins.git.extensions.impl.SubmoduleOption>
|
</hudson.plugins.git.extensions.impl.SubmoduleOption>
|
||||||
</extensions>
|
</extensions>
|
||||||
</scm>
|
</scm>
|
||||||
|
@ -140,6 +140,7 @@
|
|||||||
<parentCredentials>true</parentCredentials>
|
<parentCredentials>true</parentCredentials>
|
||||||
<reference/>
|
<reference/>
|
||||||
<timeout>100</timeout>
|
<timeout>100</timeout>
|
||||||
|
<threads>1</threads>
|
||||||
</extension>
|
</extension>
|
||||||
</jenkins.plugins.git.traits.SubmoduleOptionTrait>
|
</jenkins.plugins.git.traits.SubmoduleOptionTrait>
|
||||||
<jenkins.plugins.git.traits.CheckoutOptionTrait>
|
<jenkins.plugins.git.traits.CheckoutOptionTrait>
|
||||||
|
@ -96,6 +96,7 @@ scm:
|
|||||||
recursive: true
|
recursive: true
|
||||||
parent-credentials: true
|
parent-credentials: true
|
||||||
timeout: 100
|
timeout: 100
|
||||||
|
threads: 1
|
||||||
timeout: "100"
|
timeout: "100"
|
||||||
skip-notifications: true
|
skip-notifications: true
|
||||||
use-author: true
|
use-author: true
|
||||||
|
@ -98,6 +98,7 @@
|
|||||||
<parentCredentials>true</parentCredentials>
|
<parentCredentials>true</parentCredentials>
|
||||||
<reference/>
|
<reference/>
|
||||||
<timeout>100</timeout>
|
<timeout>100</timeout>
|
||||||
|
<threads>1</threads>
|
||||||
</extension>
|
</extension>
|
||||||
</jenkins.plugins.git.traits.SubmoduleOptionTrait>
|
</jenkins.plugins.git.traits.SubmoduleOptionTrait>
|
||||||
<jenkins.plugins.git.traits.CheckoutOptionTrait>
|
<jenkins.plugins.git.traits.CheckoutOptionTrait>
|
||||||
|
@ -85,6 +85,7 @@ scm:
|
|||||||
recursive: true
|
recursive: true
|
||||||
parent-credentials: true
|
parent-credentials: true
|
||||||
timeout: 100
|
timeout: 100
|
||||||
|
threads: 1
|
||||||
timeout: "100"
|
timeout: "100"
|
||||||
use-author: true
|
use-author: true
|
||||||
wipe-workspace: true
|
wipe-workspace: true
|
||||||
|
@ -122,6 +122,7 @@
|
|||||||
<parentCredentials>true</parentCredentials>
|
<parentCredentials>true</parentCredentials>
|
||||||
<reference/>
|
<reference/>
|
||||||
<timeout>100</timeout>
|
<timeout>100</timeout>
|
||||||
|
<threads>1</threads>
|
||||||
</extension>
|
</extension>
|
||||||
</jenkins.plugins.git.traits.SubmoduleOptionTrait>
|
</jenkins.plugins.git.traits.SubmoduleOptionTrait>
|
||||||
<jenkins.plugins.git.traits.CheckoutOptionTrait>
|
<jenkins.plugins.git.traits.CheckoutOptionTrait>
|
||||||
|
@ -96,6 +96,7 @@ scm:
|
|||||||
recursive: true
|
recursive: true
|
||||||
parent-credentials: true
|
parent-credentials: true
|
||||||
timeout: 100
|
timeout: 100
|
||||||
|
threads: 1
|
||||||
timeout: "100"
|
timeout: "100"
|
||||||
skip-notifications: true
|
skip-notifications: true
|
||||||
use-author: true
|
use-author: true
|
||||||
|
@ -29,6 +29,7 @@
|
|||||||
<parentCredentials>true</parentCredentials>
|
<parentCredentials>true</parentCredentials>
|
||||||
<reference>/jenkins_home/.gitcache/submodules</reference>
|
<reference>/jenkins_home/.gitcache/submodules</reference>
|
||||||
<timeout>15</timeout>
|
<timeout>15</timeout>
|
||||||
|
<threads>1</threads>
|
||||||
</hudson.plugins.git.extensions.impl.SubmoduleOption>
|
</hudson.plugins.git.extensions.impl.SubmoduleOption>
|
||||||
<hudson.plugins.git.extensions.impl.WipeWorkspace/>
|
<hudson.plugins.git.extensions.impl.WipeWorkspace/>
|
||||||
</extensions>
|
</extensions>
|
||||||
|
@ -8,3 +8,4 @@ scm:
|
|||||||
parent-credentials: true
|
parent-credentials: true
|
||||||
reference-repo: /jenkins_home/.gitcache/submodules
|
reference-repo: /jenkins_home/.gitcache/submodules
|
||||||
timeout: 15
|
timeout: 15
|
||||||
|
threads: 1
|
||||||
|
Loading…
Reference in New Issue
Block a user