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

Klocwork plugin does not work in a master/slave configuration.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Blocker
    • Resolution: Fixed
    • Component/s: klockwork, klocwork-plugin
    • Environment:
    • Similar Issues:

      Description

      When the Klocwork plugin generates the XML report, it is generated on the master, yet parsing of the XML report happens on the slave. The file is not found on the slave, and the build fails.

      The following http://stackoverflow.com/a/9281190/331168 answer suggests that in order for a plugin to run on the slave, the code to be run on the slave needs to be wrapped in a Callable.

        Attachments

          Activity

          avri Avri Schneider created issue -
          avri Avri Schneider made changes -
          Field Original Value New Value
          Environment Master/Slave configuration Master/Slave configuration

          Jenkins version: 1.618
          Klocwork plugin version: 1.16.3
          avri Avri Schneider made changes -
          Environment Master/Slave configuration

          Jenkins version: 1.618
          Klocwork plugin version: 1.16.3
          awt.toolkit sun.awt.X11.XToolkit
          executable-war /usr/share/jenkins/jenkins.war
          file.encoding UTF-8
          file.encoding.pkg sun.io
          file.separator /
          hudson.diyChunking true
          java.awt.graphicsenv sun.awt.X11GraphicsEnvironment
          java.awt.headless true
          java.awt.printerjob sun.print.PSPrinterJob
          java.class.path /usr/share/jenkins/jenkins.war
          java.class.version 51.0
          java.endorsed.dirs /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/endorsed
          java.ext.dirs /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/ext:/usr/java/packages/lib/ext
          java.home /usr/lib/jvm/java-7-openjdk-amd64/jre
          java.io.tmpdir /tmp
          java.library.path /usr/java/packages/lib/amd64:/usr/lib/x86_64-linux-gnu/jni:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/usr/lib/jni:/lib:/usr/lib
          java.runtime.name OpenJDK Runtime Environment
          java.runtime.version 1.7.0_79-b14
          java.specification.name Java Platform API Specification
          java.specification.vendor Oracle Corporation
          java.specification.version 1.7
          java.vendor Oracle Corporation
          java.vendor.url http://java.oracle.com/
          java.vendor.url.bug http://bugreport.sun.com/bugreport/
          java.version 1.7.0_79
          java.vm.info mixed mode
          java.vm.name OpenJDK 64-Bit Server VM
          java.vm.specification.name Java Virtual Machine Specification
          java.vm.specification.vendor Oracle Corporation
          java.vm.specification.version 1.7
          java.vm.vendor Oracle Corporation
          java.vm.version 24.79-b02
          jna.platform.library.path /usr/lib/x86_64-linux-gnu:/lib/x86_64-linux-gnu:/lib64:/usr/lib:/lib
          jnidispatch.path /tmp/jna--1712433994/jna8542286846842301608.tmp
          line.separator
          mail.smtp.sendpartial true
          mail.smtps.sendpartial true
          os.arch amd64
          os.name Linux
          os.version 3.16.0-30-generic
          path.separator :
          sun.arch.data.model 64
          sun.boot.class.path /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/resources.jar:/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/rt.jar:/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/jsse.jar:/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/jce.jar:/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/charsets.jar:/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/rhino.jar:/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/jfr.jar:/usr/lib/jvm/java-7-openjdk-amd64/jre/classes
          sun.boot.library.path /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64
          sun.cpu.endian little
          sun.cpu.isalist
          sun.font.fontmanager sun.awt.X11FontManager
          sun.io.unicode.encoding UnicodeLittle
          sun.java.command /usr/share/jenkins/jenkins.war --webroot=/var/cache/jenkins/war --httpPort=8080 --ajp13Port=-1
          sun.java.launcher SUN_STANDARD
          sun.jnu.encoding UTF-8
          sun.management.compiler HotSpot 64-Bit Tiered Compilers
          sun.os.patch.level unknown
          svnkit.http.methods Digest,Basic,NTLM,Negotiate
          svnkit.ssh2.persistent false
          user.country US
          user.dir /
          user.home /var/lib/jenkins
          user.language en
          user.name jenkins
          user.timezone Asia/Jerusalem


          _ /usr/bin/daemon
          HOME /var/lib/jenkins
          JENKINS_HOME /var/lib/jenkins
          LANG en_US.UTF-8
          LANGUAGE en_US:en
          LOGNAME jenkins
          MAIL /var/mail/jenkins
          PATH /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
          PWD /var/lib/jenkins
          SHELL /bin/bash
          SHLVL 1
          TERM linux
          USER jenkins
          XDG_RUNTIME_DIR /run/user/106
          XDG_SEAT seat0
          XDG_SESSION_ID c1


          active-directory 1.41 true false
          ant 1.2 true false
          antisamy-markup-formatter 1.3 true true
          any-buildstep 0.1 true false
          build-cause-run-condition 0.1 true false
          build-user-vars-plugin 1.4 true false
          conditional-buildstep 1.3.3 true false
          copyartifact 1.35.2 true false
          credentials 1.22 true true
          cvs 2.12 true true
          downstream-buildview 1.9 true false
          envinject 1.91.3 true false
          external-monitor-job 1.4 true false
          fail-the-build-plugin 1.0 true false
          flexible-publish 0.15.2 true false
          greenballs 1.14 true false
          javadoc 1.3 true true
          junit 1.6 true true
          klocwork 1.16.3 true false
          ldap 1.11 true false
          mailer 1.15 true true
          mapdb-api 1.0.6.0 true false
          matrix-auth 1.2 true true
          matrix-project 1.6 true true
          maven-plugin 2.10 true true
          pam-auth 1.2 true true
          parameterized-trigger 2.27 true false
          publish-over-ssh 1.13 true false
          role-strategy 2.2.0 true false
          run-condition 1.0 true false
          scm-api 0.2 true false
          script-security 1.14 true true
          ssh-credentials 1.11 true true
          ssh-slaves 1.9 true false
          subversion 2.5.1 true true
          svn-tag 1.18 true false
          token-macro 1.10 true false
          translation 1.12 true true
          windows-slaves 1.1 true true
          ws-cleanup 0.26 true false
          gbois Gregory Boissinot made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          gbois Gregory Boissinot made changes -
          Resolution Fixed [ 1 ]
          Status Resolved [ 5 ] Reopened [ 4 ]
          gbois Gregory Boissinot made changes -
          Status Reopened [ 4 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 164654 ] JNJira + In-Review [ 197533 ]

            People

            • Assignee:
              gbois Gregory Boissinot
              Reporter:
              avri Avri Schneider
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: