Git is failing to execute 'whatchanged' command which is deprecated

XMLWordPrintable

    • Type: Task
    • Resolution: Not A Defect
    • Priority: Major
    • Component/s: git-server-plugin
    • None
    • Environment:

      Despite the Git plugins being at the latest version, the job is still trying to execute a deprecated command.

       

      Job config:

       

      Console output:

       'git whatchanged' is nominated for removal.
      If you still use this command, please add an extra
      option, '--i-still-use-this', on the command line
      and let us know you still use it by sending an e-mail
      to <git@vger.kernel.org>.  Thanks.
      fatal: refusing to run without --i-still-use-this
      ERROR: Unable to retrieve changeset
      hudson.plugins.git.GitException: Error: "C:\Program Files\Git\bin\git.exe" whatchanged --no-abbrev -M "--format=commit %H%ntree %T%nparent %P%nauthor %aN <%aE> %ai%ncommitter %cN <%cE> %ci%n%n%w(0,4,4)%B" -n 1024 1bbe1cb3f1e5639761455b53d7bd5be94937bbba "^1bbe1cb3f1e5639761455b53d7bd5be94937bbba" in C:\Users\Q1CA001\jenkins-agent\workspace\Test-GitRepo_TAPP200492_FIC_QA_GenAI
          at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl$6.execute(CliGitAPIImpl.java:1333)
          at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$GitCommandMasterToSlaveCallable.call(RemoteGitImpl.java:173)
          at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$GitCommandMasterToSlaveCallable.call(RemoteGitImpl.java:164)
          at hudson.remoting.UserRequest.perform(UserRequest.java:225)
          at hudson.remoting.UserRequest.perform(UserRequest.java:50)
          at hudson.remoting.Request$2.run(Request.java:391)
          at hudson.remoting.InterceptingExecutorService.lambda$wrap$0(InterceptingExecutorService.java:81)
          at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
          at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
          at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
          at hudson.remoting.Engine$1.lambda$newThread$0(Engine.java:138)
          at java.base/java.lang.Thread.run(Thread.java:842)
          Suppressed: hudson.remoting.Channel$CallSiteStackTrace: Remote call to agent-VDI-CAVAQ1CA001
              at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1916)
              at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:384)
              at hudson.remoting.Channel.call(Channel.java:1108)
              at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.execute(RemoteGitImpl.java:155)
              at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
              at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.base/java.lang.reflect.Method.invoke(Method.java:568)
              at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.invoke(RemoteGitImpl.java:140)
              at PluginClassLoader for git-client/jdk.proxy53/jdk.proxy53.$Proxy138.execute(Unknown Source)
              at PluginClassLoader for git//hudson.plugins.git.GitSCM.computeChangeLog(GitSCM.java:1511)
              at PluginClassLoader for git//hudson.plugins.git.GitSCM._checkout(GitSCM.java:1390)
              at PluginClassLoader for git//hudson.plugins.git.GitSCM.checkout(GitSCM.java:1278)
              at hudson.scm.SCM.checkout(SCM.java:540)
              at hudson.model.AbstractProject.checkout(AbstractProject.java:1250)
              at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:649)
              at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:85)
              at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:522)
              at hudson.model.Run.execute(Run.java:1860)
              at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44)
              at hudson.model.ResourceController.execute(ResourceController.java:101)
              at hudson.model.Executor.run(Executor.java:454)

      I have tried re-installing Git plugin and Git client plugin, however, the job still continues to run the deprecated `whatchanged` command.

      This is preventing all jobs using Git to load source code from running so I have marked the ticket as high priority.  I could not find the git-plugin and git-client-plugin components, so I added the closest relative plugin I could find.

            Assignee:
            Unassigned
            Reporter:
            lkis01
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: