Uploaded image for project: 'Jenkins Artifactory Plug-in'
  1. Jenkins Artifactory Plug-in
  2. HAP-932

Support for maven running inside docker containers

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Support for maven running inside docker containers when Jenkins is not in the same container.

      To reproduce the issue:

      • Installed Jenkins on Mac with the suggested plugins along with Artifactory Plugin.
      • Created a dockerized maven client based on a Ubuntu image.
      • Created a Pipeline project in Jenkins and used the attached script.
      • Run Build -> the build failed due to not being able to find the mvn executable
      • Examining the output, we found that the plugin looks for maven on the host machine rather than inside the container. We confirmed this by specifying a MAVEN_HOME variable with a valid path on the host machine, which was identified properly by the plugin.

        Attachments

          Activity

            People

            Assignee:
            eyalb Eyal Ben Moshe
            Reporter:
            orielb Oriel Badner (Inactive)
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: