Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-45586

Recent Changes not updated when using GIT Shallow clone option

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • git-plugin
    • None
    • Jenkins 2.60.1 LTS, all latest plugins on July 17 2017.
      Jenkins server running Cent OS and Client running on a Windows Server 2012R2 VM.

      In a Multibranch job, if the Jenkins File contains the following:

      checkout changelog: true, poll: false, scm: [$class: 'GitSCM', branches: [[name: "$\{env.BRANCH_NAME}"]], doGenerateSubmoduleConfigurations: false, extensions: [[$class: 'CloneOption', depth: 0, noTags: true, reference: '', shallow: +*true*+]], submoduleCfg: [], userRemoteConfigs: [url: '[http://My]]

      The "Recent Changes" of the branch will not update.  Previous version (LTS 2.32.1) with old plugins did not had this problem.

      Changing the checkout to:

      checkout changelog: true, poll: false, scm: [$class: 'GitSCM', branches: [[name: "$\{env.BRANCH_NAME}"]], doGenerateSubmoduleConfigurations: false, extensions: [[$class: 'CloneOption', depth: 0, noTags: true, reference: '', shallow: +*false*+]], submoduleCfg: [], userRemoteConfigs: [url: '[http://My]]

      allows to get the list of "Recent Changes" populated again, but at the cost of a considerably higher build time and stress on the GIT server as the repository need to be cloned from scratch every time (as we are running agents on VMs that are always started from the same snapshot).

       

            Unassigned Unassigned
            fstlaure Frédérick St-Laurent
            Votes:
            4 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: