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

Support global configuration of local Maven repository

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: 4 - Normal
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Maven3
    • Labels:
      None

      Description

      Being able to specify the local Maven repository location is crucial in Jenkins to avoid concurrency issues.

      For regular Jenkins Maven builds, Jenkins' "Maven Project Configuration" supports a "Local Maven Repository" setting (Default/Local to the executor/Local to the workspace). 

      Jenkins Artifactory Plugin doesn't support this kind of setting in its Maven build pipeline steps.  The only solution is the pipeline script itself passing Maven's own maven.repo.local property along with the goals (see https://www.jfrog.com/confluence/display/JFROG/Scripted+Pipeline+Syntax ).

      This allows us to write pipelines that avoid concurrency problems but still has drawbacks:

      1. There's no way to protect all pipelines that neglect to override the maven.repo.local property, from concurrency issues.
      2. There's no support of the "Local to the executor" model, which addresses concurrency while being more conservative of disk space (see https://www.mail-archive.com/users@maven.apache.org/msg141457.html)

      Can a global default setting be added to Jenkins Artifactory Plugin?

       

        Attachments

          Activity

            People

            Assignee:
            eyalb Eyal Ben Moshe
            Reporter:
            JimD James Doyle
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: