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

ClamAV plugin successfully scans but crashes immediately after

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • clamav-plugin
    • None

      I'm trying to do a simple scan with the Jenkins ClamAV plugin, but the build runs into the following crash every time:

      FATAL: null
      java.lang.UnsupportedOperationException
      	at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:95)
      	at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:59)
      	at org.jenkinsci.plugins.clamav.ClamAvBuilder.perform(ClamAvBuilder.java:71)
      	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
      	at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:664)
      	at hudson.model.Build$RunnerImpl.build(Build.java:177)
      	at hudson.model.Build$RunnerImpl.doRun(Build.java:139)
      	at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:430)
      	at hudson.model.Run.run(Run.java:1376)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      	at hudson.model.ResourceController.execute(ResourceController.java:88)
      	at hudson.model.Executor.run(Executor.java:146)

      The strange part about this is that the virus scan actually takes place, and even successfully produces a virus report of all the files in my workspace. However, none of the tasks listed after the clamav scan are performed due to the build failure.

      Out of curiosity, I tried setting the ClamAV host IP to blank and ran the job again. The virus scan didn't take place (obviously) but I received the exact same error message as above.

      Some information about my environment:
      -Jenkins was installed on the latest version (1.478) in Windows 7 Pro x64, from the packaged Windows installer (I also tried Jenkins 1.417, as that is the version specified at https://wiki.jenkins-ci.org/display/JENKINS/ClamAV+Plugin)
      -I'm starting Jenkins using Windows cmd.exe with "jenkins.exe start" and configuring via jenkins.xml (<arguments>-Xrs -Xmx256m -Dhudson.lifecycle=hudson.lifecycle.WindowsServiceLifecycle -jar "%BASE%\jenkins.war" --httpPort=9080 --ajp13Port=9009</arguments>)
      -My ClamAV installation is running on an Ubuntu VM
      -The only plugins I have installed other than ClamAV are the packaged defaults and Files Found Trigger

      Please let me know if any additional information is required.

            sogabe sogabe
            caustin Charles Austin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: