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

Add `scm` parameter in UI configuration of publishIssues

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • warnings-ng-plugin
    • None

      The Unknown commit hash in the Error output is the hash from the pipeline library, not from the project itself.

      [Native Analysis Model Format] [-ERROR-] Errors while computing delta: 
      [Native Analysis Model Format] [-ERROR-] Errors from Git Delta:
      [Native Analysis Model Format] [-ERROR-] Could not find the specified commit - is the SCM parameter correctly set?
      [Native Analysis Model Format] [-ERROR-] org.eclipse.jgit.errors.MissingObjectException: Missing unknown XXXXXX
      [Native Analysis Model Format] [-ERROR-] 	at PluginClassLoader for git-client//org.eclipse.jgit.internal.storage.file.WindowCursor.open(WindowCursor.java:136)
      [Native Analysis Model Format] [-ERROR-] 	at PluginClassLoader for git-client//org.eclipse.jgit.lib.ObjectReader.open(ObjectReader.java:216)
      [Native Analysis Model Format] [-ERROR-] 	at PluginClassLoader for git-client//org.eclipse.jgit.revwalk.RevWalk.parseAny(RevWalk.java:1127)
      [Native Analysis Model Format] [-ERROR-] 	at PluginClassLoader for git-client//org.eclipse.jgit.revwalk.RevWalk.parseCommit(RevWalk.java:1038)
      [Native Analysis Model Format] [-ERROR-] 	at PluginClassLoader for git-forensics//io.jenkins.plugins.forensics.git.delta.DeltaRepositoryCallback.calculateDelta(DeltaRepositoryCallback.java:89)
      [Native Analysis Model Format] [-ERROR-] 	at PluginClassLoader for git-forensics//io.jenkins.plugins.forensics.git.delta.DeltaRepositoryCallback.invoke(DeltaRepositoryCallback.java:72)
      [Native Analysis Model Format] [-ERROR-] 	at PluginClassLoader for git-forensics//io.jenkins.plugins.forensics.git.delta.DeltaRepositoryCallback.invoke(DeltaRepositoryCallback.java:42)
      [Native Analysis Model Format] [-ERROR-] 	at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.AbstractGitAPIImpl.withRepository(AbstractGitAPIImpl.java:28)
      [Native Analysis Model Format] [-ERROR-] 	at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl.withRepository(CliGitAPIImpl.java:82)
      [Native Analysis Model Format] [-ERROR-] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [Native Analysis Model Format] [-ERROR-] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      [Native Analysis Model Format] [-ERROR-] 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      [Native Analysis Model Format] [-ERROR-] 	at java.base/java.lang.reflect.Method.invoke(Unknown Source)
      [Native Analysis Model Format] [-ERROR-] 	at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:986)
      [Native Analysis Model Format] [-ERROR-] 	at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:961)
      [Native Analysis Model Format] [-ERROR-] 	at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:907)
      [Native Analysis Model Format] [-ERROR-] 	at hudson.remoting.UserRequest.perform(UserRequest.java:225)
      [Native Analysis Model Format] [-ERROR-]   ... skipped logging of 8 additional errors ...
      

      Had the same problem with `discoverGitReferenceBuild` but could fix it with the `scm` parameter. Setting it to `scm: "$projectName"` which is not available for `publishIssues`.

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

              Created:
              Updated: