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

Unable to find files on analysis-core 3.0

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • analysis-core-plugin
    • 5.0.0-beta2

      I am trying to get Static Analysis results in a pipeline using the new Static Analysis using pipeline plugins.

       

      thanks to drulli I managed to create a pipeline for a node js github repository.

      both scanForIssues and publishIssues hits the same exception:

      [Pipeline] scanForIssues
      13:29:03 [CheckStyle] Searching for all files in '/home/jenkins/workspace/monitor_master_dev-6G74EQSJPLUUCZUYGIF5A3SRCAXWEFUPUYZ3MGXOYFEVJGFWBB4Q' that match the pattern 'coverage/eslint.xml'
      13:29:03 [CheckStyle] -> found 1 file
      13:29:03 [CheckStyle] Successfully parsed file /home/jenkins/workspace/monitor_master_dev-6G74EQSJPLUUCZUYGIF5A3SRCAXWEFUPUYZ3MGXOYFEVJGFWBB4Q/coverage/eslint.xml: found 42 issues (skipped 0 duplicates)
      13:29:03 [CheckStyle] Resolving absolute file names for all issues
      13:29:03 [CheckStyle] Resolved absolute paths for 1 files (Issues 42 resolved, 0 unresolved, 0 already absolute)
      13:29:03 [CheckStyle] Resolving module names from module definitions (build.xml, pom.xml, or Manifest.mf files)
      13:29:03 [CheckStyle] Resolved module names for 42 issues
      13:29:03 [CheckStyle] Using encoding 'UTF-8' to resolve package names (or namespaces)
      13:29:03 [CheckStyle] Resolved package names of 1 affected files
      13:29:03 [CheckStyle] Using encoding 'UTF-8' to read source files
      13:29:03 [CheckStyle] [ERROR] Can't read file '/home/jenkins/workspace/monitor_master_dev-6G74EQSJPLUUCZUYGIF5A3SRCAXWEFUPUYZ3MGXOYFEVJGFWBB4Q/nodejs/monitor.js': java.nio.file.NoSuchFileException: /home/jenkins/workspace/monitor_master_dev-6G74EQSJPLUUCZUYGIF5A3SRCAXWEFUPUYZ3MGXOYFEVJGFWBB4Q/nodejs/monitor.js
      
      

      I checked for permissions and as you can see the file exists under user:group of jenkins:jenkins with reading rights (change to full rights still failed on the same error)

      -rw-r--r--    1 jenkins    jenkins monitor.js
       

      Following link our conversation I am opening this bug,

      drulli Do you know if this plugin run anywhere on a master/slave envirnment ?

            drulli Ulli Hafner
            chenfli Chen Fliesher
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: