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

Different Maven Installations are not supported

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • job-dsl-plugin
    • None

      Currently the job dsl supports the following:

      job {
        name '...'
      
        steps {
          maven {
            goals("-B clean package")
            ...
          }
        }
      }
      

      But it would be nice having support for different maven installation like this:

      job {
        name '...'
      
        steps {
      
          maven {
            mavenName("Maven 2.0.11")
            goals("-B clean package")
          }
          maven {
            mavenName("Maven 3.0.5")
            goals("-B clean package")
          }
          ...
        }
      }
      

      But currently the code has hard coded the maveName with "default" which prevents any job configuration like the above.

            daspilker Daniel Spilker
            khmarbaise Karl-Heinz Marbaise
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: