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

Use system default Maven, Maven Settings if not specified

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Currently, when you use the ``withMaven`` step, you need to specify the Maven installation. Furthermore, if you've configured, using the Managed Files and Global Tools Configuration, a maven settings.xml, you need to specify an ugly ID for that.

      For example:
      withMaven(maven: 'Maven 3.3', mavenSettingsConfig: 'ecbd05c9-e03e-4ccb-9aa1-242f9f1a423c')

      { sh "mvn clean verify -B" }

      It would be good if these could both be defaulted - at least, the mavenSettingsConfig, which doesn't have to be specified with the freestyle Maven Builder.

        Attachments

          Issue Links

            Activity

            twasink Robert Watkins created issue -
            cleclerc Cyrille Le Clerc made changes -
            Field Original Value New Value
            Attachment maven-global-settings.png [ 35034 ]
            cleclerc Cyrille Le Clerc made changes -
            Attachment maven-global-settings.png [ 35035 ]
            cleclerc Cyrille Le Clerc made changes -
            Link This issue is blocked by JENKINS-40665 [ JENKINS-40665 ]
            alobato Alvaro Lobato made changes -
            Assignee Alvaro Lobato [ alobato ] Cyrille Le Clerc [ cleclerc ]
            alobato Alvaro Lobato made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            cleclerc Cyrille Le Clerc made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            cleclerc Cyrille Le Clerc made changes -
            Resolution Fixed [ 1 ]
            Status In Review [ 10005 ] Resolved [ 5 ]
            cleclerc Cyrille Le Clerc made changes -
            Status Resolved [ 5 ] Closed [ 6 ]

              People

              Assignee:
              cleclerc Cyrille Le Clerc
              Reporter:
              twasink Robert Watkins
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: