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

support maven.local.repo.tail

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Minor Minor
    • pipeline-maven-plugin
    • None

      It would be really nice to support maven.local.repo.tail directly in the withMaven parameters.

      Usage scenario:

      • have a build-only pipeline step that runs
      maven install -DskipTests
      • Have multiple parallel test steps that mount the repo built by the first step as read-only.
        But it seems e.g. surefire need rw repo access.

      Thus it would be really nice to be able to use the maven.local.repo.tail property.
      More information on that here: https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=235837219

      Example:

       

      withMaven(mavenLocalRepo:".repository",mavenLocalTailRepos:"$SHARED_WORKSPACE/.repository,$GLOBAL_CACHE_LOCATION")
      {  ... }
      

       

       

      The clause should maybe even fail the step if maven < 3.9 is used.

            Unassigned Unassigned
            thigg Thilo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: