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

Autofavorite broken on remote agents

    XMLWordPrintable

Details

    • Blue Ocean - 1.1-beta-1, Blue Ocean - 1.1-beta2, Blue Ocean 1.1-beta4, Blue Ocean 1.1

    Description

      Observable in jenkinsci/workflow-demo:2017-04-05:

      ... io.jenkins.blueocean.autofavorite.FavoritingScmListener onCheckout
      SEVERE: Unexpected error when retrieving changeset
      hudson.plugins.git.GitException: Error launching git whatchanged
      	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$6.execute(CliGitAPIImpl.java:854)
      	at io.jenkins.blueocean.autofavorite.FavoritingScmListener.getChangeSet(FavoritingScmListener.java:137)
      	at io.jenkins.blueocean.autofavorite.FavoritingScmListener.onCheckout(FavoritingScmListener.java:67)
      	at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:123)
      	at org.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.doRetrieve(SCMSourceRetriever.java:108)
      	at org.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.retrieve(SCMSourceRetriever.java:84)
      	at org.jenkinsci.plugins.workflow.libs.LibraryAdder.retrieve(LibraryAdder.java:150)
      	at org.jenkinsci.plugins.workflow.libs.LibraryAdder.add(LibraryAdder.java:131)
      	at org.jenkinsci.plugins.workflow.libs.LibraryDecorator$1.call(LibraryDecorator.java:114)
      	at org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1053)
      	at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:591)
      	at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:569)
      	at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:546)
      	at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:298)
      	at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:268)
      	at groovy.lang.GroovyShell.parseClass(GroovyShell.java:688)
      	at groovy.lang.GroovyShell.parse(GroovyShell.java:700)
      	at org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.reparse(CpsGroovyShell.java:67)
      	at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.parseScript(CpsFlowExecution.java:430)
      	at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.start(CpsFlowExecution.java:393)
      	at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:238)
      	at hudson.model.ResourceController.execute(ResourceController.java:98)
      	at hudson.model.Executor.run(Executor.java:405)
      

      Attachments

        Issue Links

          Activity

            dordor dor s added a comment -

            Getting the same error on a Pull request (Bitbucket) with shared libraries in k8s agent pod

             

            2021-08-22 08:08:05.955+0000 [id=25701] SEVERE i.j.b.a.FavoritingScmListener#onCheckout: Unexpected error when retrieving changeset
            hudson.plugins.git.GitException: Error: git 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 1 ssda9327a7esadsadsadsadsadsdd in /var/jenkins_home/workspace/bitbucket-repos_api_PR-231@libs/pipeline-library 
            	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$6.execute(CliGitAPIImpl.java:1272) 
            	at io.jenkins.blueocean.autofavorite.FavoritingScmListener.getChangeSet(FavoritingScmListener.java:159) 
            	at io.jenkins.blueocean.autofavorite.FavoritingScmListener.onCheckout(FavoritingScmListener.java:84) 
            	at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:155) 
            	at org.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.lambda$doRetrieve$1(SCMSourceRetriever.java:190) 
            	at org.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.retrySCMOperation(SCMSourceRetriever.java:140) 
            	at org.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.doRetrieve(SCMSourceRetriever.java:189) 
            	at org.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.retrieve(SCMSourceRetriever.java:129) 
            	at org.jenkinsci.plugins.workflow.libs.LibraryAdder.retrieve(LibraryAdder.java:196) 
            	at org.jenkinsci.plugins.workflow.libs.LibraryStep$Execution.run(LibraryStep.java:210) 
            	at org.jenkinsci.plugins.workflow.libs.LibraryStep$Execution.run(LibraryStep.java:155) 
            	at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:47) 
            	at hudson.security.ACL.impersonate2(ACL.java:449) at hudson.security.ACL.impersonate(ACL.java:461) 
            	at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:44) 
            	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) 
            	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) 
            	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) 
            	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:829)
            

             

             

             

            dordor dor s added a comment - Getting the same error on a Pull request  (Bitbucket) with shared libraries in k8s agent pod   2021-08-22 08:08:05.955+0000 [id=25701] SEVERE i.j.b.a.FavoritingScmListener#onCheckout: Unexpected error when retrieving changeset hudson.plugins.git.GitException: Error: git 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 1 ssda9327a7esadsadsadsadsadsdd in / var /jenkins_home/workspace/bitbucket-repos_api_PR-231@libs/pipeline-library at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$6.execute(CliGitAPIImpl.java:1272) at io.jenkins.blueocean.autofavorite.FavoritingScmListener.getChangeSet(FavoritingScmListener.java:159) at io.jenkins.blueocean.autofavorite.FavoritingScmListener.onCheckout(FavoritingScmListener.java:84) at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:155) at org.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.lambda$doRetrieve$1(SCMSourceRetriever.java:190) at org.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.retrySCMOperation(SCMSourceRetriever.java:140) at org.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.doRetrieve(SCMSourceRetriever.java:189) at org.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.retrieve(SCMSourceRetriever.java:129) at org.jenkinsci.plugins.workflow.libs.LibraryAdder.retrieve(LibraryAdder.java:196) at org.jenkinsci.plugins.workflow.libs.LibraryStep$Execution.run(LibraryStep.java:210) at org.jenkinsci.plugins.workflow.libs.LibraryStep$Execution.run(LibraryStep.java:155) at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:47) at hudson.security.ACL.impersonate2(ACL.java:449) at hudson.security.ACL.impersonate(ACL.java:461) at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:44) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang. Thread .run( Thread .java:829)      
            markewaite Mark Waite added a comment -

            dordor the solution for this problem is to uninstall the blueocean autofavorite plugin. Update to the most recent version of blue ocean and the autofavorite plugin can be uninstalled. The autofavorite plugin did not provide me enough value to justify leaving it in my Jenkins installation

            markewaite Mark Waite added a comment - dordor the solution for this problem is to uninstall the blueocean autofavorite plugin. Update to the most recent version of blue ocean and the autofavorite plugin can be uninstalled. The autofavorite plugin did not provide me enough value to justify leaving it in my Jenkins installation
            dordor dor s added a comment -

            Hi markewaite , thank you for your answer, it seems that I can't uninstall blueocean autofavorite plugin because it's used as a dependency for the Blue Ocean plugin (here)

            How can I remove it?

             

            dordor dor s added a comment - Hi markewaite  , thank you for your answer, it seems that I can't uninstall blueocean autofavorite plugin because it's used as a dependency for the Blue Ocean plugin ( here ) How can I remove it?  
            paybas Pay Bas added a comment - - edited

            As others have noted: adding the following line to my jenkins/init.groovy.d/startup.groovy worked:

            System.setProperty("BLUEOCEAN_FEATURE_AUTOFAVORITE_ENABLED", "false")

            Doesn't fix the underlying problem obviously, but does prevent a lot of errors.

            paybas Pay Bas added a comment - - edited As others have noted: adding the following line to my jenkins/init.groovy.d/startup.groovy worked: System .setProperty( "BLUEOCEAN_FEATURE_AUTOFAVORITE_ENABLED" , " false " ) Doesn't fix the underlying problem obviously, but does prevent a lot of errors.
            markewaite Mark Waite added a comment -

            dordor In my installation I removed it by unchecking (disabling) the "Blue Ocean Aggregator" and then uninstalling the "Autofavorite for Blue Ocean" plugin. I've now switched to managing plugin versions with a plugins.txt file and the plugin installation manager tool.

            markewaite Mark Waite added a comment - dordor In my installation I removed it by unchecking (disabling) the "Blue Ocean Aggregator" and then uninstalling the "Autofavorite for Blue Ocean" plugin. I've now switched to managing plugin versions with a plugins.txt file and the plugin installation manager tool .

            People

              Unassigned Unassigned
              jglick Jesse Glick
              Votes:
              7 Vote for this issue
              Watchers:
              23 Start watching this issue

              Dates

                Created:
                Updated: