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

GitReferenceRecorder defaultBranch Unknown parameter warnings

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • git-forensics-plugin
    • None
    • JCasC & Jenkins 2.449

      Since the update to forensic plugin 2.1.0 I continuously have this warning in logs

       

      WARNING	o.j.p.s.d.DescribableModel#instantiate: WARNING: Unknown parameter(s) found for class type 'io.jenkins.plugins.forensics.git.reference.GitReferenceRecorder': defaultBranch 

      I changed our jenkins shared libraries code which was using defaultBranch instead of targetBranch

              discoverGitReferenceBuild scm: scm.userRemoteConfigs[0].url, defaultBranch: lkUtils.getReferenceBranch()

      to

              discoverGitReferenceBuild scm: scm.userRemoteConfigs[0].url, targetBranch: lkUtils.getReferenceBranch() 

      But I still have the error in logs, I don't have any other reference to it.

      I am still unsure if it's a bug or a misconfiguration from myself.

       

            drulli Ulli Hafner
            thibveni Thibaut
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: