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

Fail to Unpacking sonar-scanner-cli-2.8.zip to Jenkins workspace and got ERROR: Build step failed with exception java.lang.IllegalArgumentException : Negative time

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Blocker
    • Resolution: Unresolved
    • Component/s: sonar-plugin
    • Labels:
      None
    • Environment:
    • Similar Issues:

      Description

      got error message during build step

       
      Started by user
      admin
      Building on master in workspace C:\Program Files (x86)\Jenkins\workspace\SonarQube
      > git rev-parse --is-inside-work-tree # timeout=10
      Fetching changes from the remote Git repository
      > git config remote.origin.url D:\OneAppSourceFile # timeout=10
      Fetching upstream changes from D:\OneAppSourceFile
      > git --version # timeout=10
      > git fetch --tags --progress D:\OneAppSourceFile +refs/heads/:refs/remotes/origin/
      > git rev-parse "refs/remotes/origin/master^{commit}" # timeout=10
      > git rev-parse "refs/remotes/origin/origin/master^{commit}" # timeout=10
      Checking out Revision 9b712ff11622f7ad400f56d000defa59676e632c (refs/remotes/origin/master)
      > git config core.sparsecheckout # timeout=10
      > git checkout -f 9b712ff11622f7ad400f56d000defa59676e632c
      > git rev-list 9b712ff11622f7ad400f56d000defa59676e632c # timeout=10
      Unpacking
      https://repo1.maven.org/maven2/org/sonarsource/scanner/cli/sonar-scanner-cli/2.8/sonar-scanner-cli-2.8.zip
      to C:\Program Files (x86)\Jenkins\tools\hudson.plugins.sonar.SonarRunnerInstallation\SonarQube_Scanner on Jenkins
      ERROR: Build step failed with exception
      java.lang.IllegalArgumentException
      : Negative time
      at java.io.File.setLastModified(Unknown Source)
      at hudson.FilePath.unzip(FilePath.java:605)
      at hudson.FilePath.unzip(FilePath.java:570)
      at hudson.FilePath.access$100(FilePath.java:195)
      at hudson.FilePath$6.invoke(FilePath.java:558)
      at hudson.FilePath$6.invoke(FilePath.java:556)
      at hudson.FilePath.act(FilePath.java:996)
      at hudson.FilePath.act(FilePath.java:974)
      at hudson.FilePath.unzipFrom(FilePath.java:556)
      at hudson.FilePath.installIfNecessaryFrom(FilePath.java:844)
      at hudson.FilePath.installIfNecessaryFrom(FilePath.java:762)
      at hudson.tools.DownloadFromUrlInstaller.performInstallation(DownloadFromUrlInstaller.java:76)
      at hudson.tools.InstallerTranslator.getToolHome(InstallerTranslator.java:72)
      at hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:109)
      at hudson.tools.ToolInstallation.translateFor(ToolInstallation.java:206)
      at hudson.plugins.sonar.SonarRunnerInstallation.forNode(SonarRunnerInstallation.java:104)
      at hudson.plugins.sonar.SonarRunnerInstallation.forNode(SonarRunnerInstallation.java:62)
      at hudson.plugins.sonar.utils.BuilderUtils.getBuildTool(BuilderUtils.java:70)
      at hudson.plugins.sonar.SonarRunnerBuilder.perform(SonarRunnerBuilder.java:279)
      at hudson.plugins.sonar.SonarRunnerBuilder.perform(SonarRunnerBuilder.java:261)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
      at hudson.model.Build$BuildExecution.build(Build.java:206)
      at hudson.model.Build$BuildExecution.doRun(Build.java:163)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
      at hudson.model.Run.execute(Run.java:1728)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:98)
      at hudson.model.Executor.run(Executor.java:405)
      Build step 'Execute SonarQube Scanner' marked build as failure
      [BFA] Scanning build for known causes...
      [BFA] No failure causes found
      [BFA] Done. 0s
      Finished: FAILURE

        Attachments

        1. Capture1.JPG
          81 kB
          warinthira t
        2. Capture2.JPG
          72 kB
          warinthira t
        3. Capture3.JPG
          102 kB
          warinthira t
        4. Capture4.JPG
          80 kB
          warinthira t
        5. Capture5.JPG
          74 kB
          warinthira t
        6. Capture6.JPG
          89 kB
          warinthira t

          Activity

          Hide
          andnyb Andreas Nyberg added a comment -

          Does not seem to be related to the sonarqube-slack-pusher-plugin, try to address the sonarqube scanner addon documentation from Sonarqube.

          Show
          andnyb Andreas Nyberg added a comment - Does not seem to be related to the sonarqube-slack-pusher-plugin, try to address the sonarqube scanner addon documentation from Sonarqube.

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            warinthira warinthira t
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: