I have a Git repository abc.git
containing submodules in it. We have a Jenkins job that is used to build abc.git
repository.
The Jenkins job uses the GitSCM plugin to check out the code and do the build. Below is the plugin configuration that is used in the job.
checkout([$class: 'GitSCM', changelog: true, branches: [[name: "*/${branch}"]],
extensions: [[$class: 'SubmoduleOption', disableSubmodules: false,
parentCredentials: false, recursiveSubmodules: true, reference: '',
trackingSubmodules: true]],
userRemoteConfigs:[[credentialsId: '',
url: "${componentUrl}"]]])
When I do a commit in the ABC
repository that commit is reflected in the Jenkins build changelog set. But when I do a commit in the submodules the commit is not getting shown in the Jenkins build changelog set.
Please let me know if there is any other configuration that needs to be added to the plugin configuration to make this work.
Also, let me know if there is an alternative way to solve this if the plugin does not support it.