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

Bad path for submodules

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • violations-plugin
    • None

      Maven builds fail because of Violation plugin if there is submodules
      There is a missing slash in the submodule path when fetching Violations files

      For example, with a Maven project:

      • parent
        • service
        • presentation
          • webapp
        • dao
          Violation path is presentationwebapp instead of presentation/webapp

      FATAL: /home/workspace/hudson/jobs/esp/workspace/presentationwebapp does not exist.
      /home/workspace/hudson/jobs/esp/workspace/presentationwebapp does not exist.
      at org.apache.tools.ant.types.AbstractFileSet.getDirectoryScanner(AbstractFileSet.java:474)
      at hudson.plugins.violations.ViolationsCollector.findFiles(ViolationsCollector.java:215)
      at hudson.plugins.violations.ViolationsCollector.doType(ViolationsCollector.java:166)
      at hudson.plugins.violations.ViolationsCollector.invoke(ViolationsCollector.java:110)
      at hudson.plugins.violations.ViolationsCollector.invoke(ViolationsCollector.java:27)
      at hudson.FilePath.act(FilePath.java:756)
      at hudson.FilePath.act(FilePath.java:738)
      at hudson.plugins.violations.hudson.maven.ViolationsMavenReporter.end(ViolationsMavenReporter.java:96)
      at hudson.maven.Maven3Builder.end(Maven3Builder.java:207)
      at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:626)
      at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:417)
      at hudson.model.Run.run(Run.java:1362)
      at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:400)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:145)

            olamy Olivier Lamy
            aeris22 aeris22
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: