Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Component/s: violations-plugin
    • Labels:
      None
    • Similar Issues:
      Show 5 results

      Description

      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)

        Attachments

          Issue Links

            Activity

            aeris22 aeris22 created issue -
            aeris22 aeris22 made changes -
            Field Original Value New Value
            Description 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
             \_ presentation
                 \_ webapp
            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)
            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

            {quote}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){quote}
            olamy olamy made changes -
            Link This issue duplicates JENKINS-8418 [ JENKINS-8418 ]
            olamy olamy made changes -
            Status Open [ 1 ] Closed [ 6 ]
            Assignee peterkittreilly [ peterkittreilly ] olamy [ olamy ]
            Fix Version/s current [ 10162 ]
            Resolution Fixed [ 1 ]
            olamy olamy made changes -
            Resolution Fixed [ 1 ]
            Status Closed [ 6 ] Reopened [ 4 ]
            olamy olamy made changes -
            Status Reopened [ 4 ] Closed [ 6 ]
            Resolution Fixed [ 1 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 138562 ] JNJira + In-Review [ 204810 ]

              People

              • Assignee:
                olamy olamy
                Reporter:
                aeris22 aeris22
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: