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

gitParameter does not load branches and tags when several git projects

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • git-parameter-plugin
    • None
    • Jenkins : v2.504
      git-parameter plugin : 439.vb_0e46ca_14534
      git plugin : 5.7.0
      git-client plugin :6.1.3

      After an upgrade from Jenkins 2.440.3 to 2.504, and from plugin git parameter 0.9.19 to 439.vb_0e46ca_14534, when trying to build a pipeline with parameters containing 3 gitParameters getting references from 3 different git projects, the gitParameters do not load the references anymore. After around 1min trying to load the references, it ends up displaying the message "Retrieving git references..." in what should have been the drop-down list filled with references.

      In the web console, 504 errors appear after 1min trying to load the references:

      The parameters look like this:

      properties([
              parameters([
                  ...
                  gitParameter(branch: '',
                          branchFilter: 'INFRA/(.*)',
                          defaultValue: 'main',
                          description: '',
                          name: 'tag_infra',
                          quickFilterEnabled: true,
                          selectedValue: 'NONE',
                          sortMode: 'DESCENDING_SMART',
                          tagFilter: '*',
                          useRepository: ".*repository1.git",
                          type: 'PT_BRANCH_TAG'),
                  gitParameter(branch: '',
                          branchFilter: 'CONFIG/(.*)',
                          defaultValue: 'main',
                          description: '',
                          name: 'tag_config',
                          quickFilterEnabled: true,
                          selectedValue: 'NONE',
                          sortMode: 'DESCENDING_SMART',
                          tagFilter: '*',
                          useRepository: ".*repository2.git",
                          type: 'PT_BRANCH_TAG'),
                  gitParameter(branch: '',
                          branchFilter: 'CICD/(.*)',
                          defaultValue: 'master',
                          description: '',
                          name: 'tag',
                          quickFilterEnabled: true,
                          selectedValue: 'NONE',
                          sortMode: 'DESCENDING_SMART',
                          tagFilter: '*',
                          useRepository: ".*repository3.git",
                          type: 'PT_BRANCH_TAG'),
      ...
      ])
      ])
      }
      

      And the 3 repositories are declared in the Pipeline script from SCM (Git) section, with names INFRA (repository1), CONFIG (repository2) and CICD (repository3).

      The pipeline works just fine if we rebuild it from a previous deployment, it's just the gitParameters that do not get filled anymore.

       

       

            Unassigned Unassigned
            anv anv
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: