9e51beb804
Jenkins Git plugin does not use your configured credentials for cloning submodules, but you can told it to use credentials from parent repository, by checking "Use credentials from default remote of parent repository", and this "parent-credentials" will set that option. So without this option jenkins git plugin will not be able to clone submodules, if they are not public available. The default value is "false", like in jenkins git plugin. See-also: https://issues.jenkins-ci.org/browse/JENKINS-20941 Change-Id: I1cfb3f45bb082f538eff1a9e64a03be27f759a5f Signed-off-by: Azat Khuzhin <a3at.mail@gmail.com>
37 lines
1.3 KiB
XML
37 lines
1.3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<project>
|
|
<scm class="hudson.plugins.git.GitSCM">
|
|
<configVersion>2</configVersion>
|
|
<userRemoteConfigs>
|
|
<hudson.plugins.git.UserRemoteConfig>
|
|
<name>origin</name>
|
|
<refspec>+refs/heads/*:refs/remotes/origin/*</refspec>
|
|
<url>https://github.com/openstack-infra/jenkins-job-builder.git</url>
|
|
</hudson.plugins.git.UserRemoteConfig>
|
|
</userRemoteConfigs>
|
|
<branches>
|
|
<hudson.plugins.git.BranchSpec>
|
|
<name>**</name>
|
|
</hudson.plugins.git.BranchSpec>
|
|
</branches>
|
|
<doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations>
|
|
<remotePoll>false</remotePoll>
|
|
<gitTool>Default</gitTool>
|
|
<submoduleCfg class="list"/>
|
|
<reference/>
|
|
<gitConfigName/>
|
|
<gitConfigEmail/>
|
|
<extensions>
|
|
<hudson.plugins.git.extensions.impl.SubmoduleOption>
|
|
<disableSubmodules>true</disableSubmodules>
|
|
<recursiveSubmodules>true</recursiveSubmodules>
|
|
<trackingSubmodules>true</trackingSubmodules>
|
|
<parentCredentials>true</parentCredentials>
|
|
<reference>/jenkins_home/.gitcache/submodules</reference>
|
|
<timeout>15</timeout>
|
|
</hudson.plugins.git.extensions.impl.SubmoduleOption>
|
|
<hudson.plugins.git.extensions.impl.WipeWorkspace/>
|
|
</extensions>
|
|
</scm>
|
|
</project>
|