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

withMaven requires maven argument when using with takari wrapper

XMLWordPrintable

      my declarative pipeline invoking withMaven + takari wrapper, it bails if I don't define maven label
       
          withMaven( maven: 'M3') {  
               bat "./mvnw ...."
          }
       
      Without  maven defined, it errors out as
       
         ERROR: Could not find maven executable, please set up a Maven Installation or configure MAVEN_HOME or M2_HOME environment variable

            cleclerc Cyrille Le Clerc
            dantran dan tran
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: