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

Maven3Builder don't handle ToolInstallers

    Details

    • Similar Issues:

      Description

      When used with a maven installation set to automatically install maven, build fails with "ERROR: Maven 'Maven 3.0.4' doesn't have its home set"

      hudson.maven.AbstractMavenProcessFactory.getMavenInstallation and hudson.tasks.Maven performs the node translation (which is responsible for running installers etc. as well).

      org.jfrog.hudson.maven3.Maven3Builder don't.

        Attachments

          Activity

          Hide
          ndeloof Nicolas De Loof added a comment -

          according to javadoc, jfrog Maven3Builder is designed as a "Maven3 builder for free style projects. Hudson 1.392 added native support for maven 3 but this one is useful for free style."

          jenkins standard Maven freestyle build step fully supports maven3, so I really don't understand why this build step exists. Should at least re-use maven-plugin's Maven3ProcessFactory to avoid this bug, or probably be deprecated with migration code to convert to hudson.task.Maven

          Show
          ndeloof Nicolas De Loof added a comment - according to javadoc, jfrog Maven3Builder is designed as a "Maven3 builder for free style projects. Hudson 1.392 added native support for maven 3 but this one is useful for free style." jenkins standard Maven freestyle build step fully supports maven3, so I really don't understand why this build step exists. Should at least re-use maven-plugin's Maven3ProcessFactory to avoid this bug, or probably be deprecated with migration code to convert to hudson.task.Maven
          Hide
          yossis yossis added a comment -

          The freestyle builder exists for some time and it is still used. I opened an issue on our issue tracker https://issues.jfrog.org/jira/browse/HAP-374 and we will check how we can adjust it to work with the latest changes in Jenkins.

          Show
          yossis yossis added a comment - The freestyle builder exists for some time and it is still used. I opened an issue on our issue tracker https://issues.jfrog.org/jira/browse/HAP-374 and we will check how we can adjust it to work with the latest changes in Jenkins.
          Show
          ndeloof Nicolas De Loof added a comment - see https://issues.jfrog.org/jira/browse/HAP-374
          Hide
          evernat evernat added a comment -

          The issue in jfrog's jira is resolved as fixed.
          So resolving this one as well.

          Show
          evernat evernat added a comment - The issue in jfrog's jira is resolved as fixed. So resolving this one as well.

            People

            • Assignee:
              yossis yossis
              Reporter:
              ndeloof Nicolas De Loof
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: