• 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.

          [JENKINS-71592] support maven.local.repo.tail

          Thilo created issue -
          Thilo made changes -
          Description Original: It would be really nice to support maven.local.repo.tail directly in the withMaven plugin.

          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
          New: 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.
          Thilo made changes -
          Description Original: 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.
          New: 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

          {code:java}
          maven install -DskipTests{code}
           * 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:

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

           

          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: