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

Unable to find files on analysis-core 3.0

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: analysis-core-plugin
    • Environment:
    • Similar Issues:
    • Released As:
      5.0.0-beta2

      Description

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

       

      thanks to Ulli Hafner 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,

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

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Ulli Hafner
          Path:
          src/main/java/io/jenkins/plugins/analysis/core/steps/IssuesAggregator.java
          src/main/java/io/jenkins/plugins/analysis/core/steps/IssuesRecorder.java
          src/main/java/io/jenkins/plugins/analysis/core/steps/IssuesScanner.java
          src/main/java/io/jenkins/plugins/analysis/core/steps/LogHandler.java
          src/main/java/io/jenkins/plugins/analysis/core/steps/PublishIssuesStep.java
          src/main/java/io/jenkins/plugins/analysis/core/util/AbsolutePathGenerator.java
          src/test/java/io/jenkins/plugins/analysis/core/util/AbsolutePathGeneratorTest.java
          http://jenkins-ci.org/commit/analysis-core-plugin/2a00182e3a153bdeecf3741a152dca0dab29c35c
          Log:
          [FIXED JENKINS-50926] Invoke issue post processing on the agent.

          *NOTE:* This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

          Functionality will be removed from GitHub.com on January 31st, 2019.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Ulli Hafner Path: src/main/java/io/jenkins/plugins/analysis/core/steps/IssuesAggregator.java src/main/java/io/jenkins/plugins/analysis/core/steps/IssuesRecorder.java src/main/java/io/jenkins/plugins/analysis/core/steps/IssuesScanner.java src/main/java/io/jenkins/plugins/analysis/core/steps/LogHandler.java src/main/java/io/jenkins/plugins/analysis/core/steps/PublishIssuesStep.java src/main/java/io/jenkins/plugins/analysis/core/util/AbsolutePathGenerator.java src/test/java/io/jenkins/plugins/analysis/core/util/AbsolutePathGeneratorTest.java http://jenkins-ci.org/commit/analysis-core-plugin/2a00182e3a153bdeecf3741a152dca0dab29c35c Log: [FIXED JENKINS-50926] Invoke issue post processing on the agent. * NOTE: * This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/ Functionality will be removed from GitHub.com on January 31st, 2019.
          Hide
          drulli Ulli Hafner added a comment -

          Released in 5.0.0-beta2.

          Show
          drulli Ulli Hafner added a comment - Released in 5.0.0-beta2.

            People

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

              Dates

              Created:
              Updated:
              Resolved: