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

Stop displaying warnings when using withMaven in a Kubernetes agent

XMLWordPrintable

      Stop displaying warnings when using withMaven in a Kubernetes agent.

      Stop displaying

      [withMaven] Options: []
      [withMaven] Available options: 
      [withMaven] WARNING: "withMaven(){...}" step running within a container. Since the Docker Pipeline Plugin version 1.14, you MUST:
      [withMaven] * Either prepend the 'MVN_CMD_DIR' environment variable to the 'PATH' environment variable in every 'sh' step that invokes 'mvn' (e.g. "sh 'export PATH=$MVN_CMD_DIR:$PATH && mvn clean deploy' "). 
      [withMaven] * Or use 'MVN_CMD' instead of invoking 'mvn' (e.g. "sh '$MVN_CMD clean deploy' "). 
      [withMaven] * Or use Takari's Maven Wrapper (e.g. "sh './mvnw clean deploy'")
      [withMaven] See Pipeline Maven Plugin FAQ.
      [withMaven] using JDK installation provided by the build agent
      [withMaven] using Maven global settings.xml ...
      

            cleclerc Cyrille Le Clerc
            cleclerc Cyrille Le Clerc
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: