-
Bug
-
Resolution: Won't Fix
-
Critical
-
None
Environment:
Jenkins ver. 2.75
Git clent plugin ver 2.6.0
Git Plugin ver 3.6.4
Credentials Plugin ver 2.1.16
SSH Credentials Plugin ver 1.13
Step:
we have .gitmodules file in main repository, and has sub repository like this:
[submodule "platform/planx"]
path = platform/planx
url = git@XXXXXXXXX.git
branch = release
the sub repository has several branch, such as master, develop, release, and we want to use release to build
jenkins config:
use "Advanced sub-modules behaviours"
tick "Recursively update submodules"
tick "Use credentials from default remote of parent repository"
Then when build use jenkins, it use my branch master of sub repository instead of branch release