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

git diffstats uses wrong hash on pipeline shared library

XMLWordPrintable

      When using declarative piplines with shared library, git diffstat use the commit hash from the shared library. Which leads to an exception:

      org.eclipse.jgit.errors.MissingObjectException: Missing unknown 18c3e52eed8557cf9f7335c720186b07ad1b7082
      

      It detects the right build from master, but uses the commit hash from the shared library instead of the project itself:

      We already setting the scm-Parameter

      discoverGitReferenceBuild defaultBranch: 'master', latestBuildIfNotFound: true, scm: projectName
      gitDiffStat scm: projectName
      

      projectName is set to "nodejs-test"

            drulli Ulli Hafner
            rpaasche Ruby Paasche
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: