Really belongs in a different plugin as described in JENKINS-26462 but filing here for the moment.

      A way to run Maven from a workflow using configured Maven installations and with support for other features such as settings files and console highlighting.

          [JENKINS-26057] Workflow build step for Maven

          Alvaro Lobato added a comment -

          Started to work on this issue. Already have a block scope step that accepts a Maven Installation and changes the environment variables so when you invoke "sh maven" inside that block uses the defined maven installations.

          Next steps allow to define settings.xml by using Config File Provider plugin.

          Alvaro Lobato added a comment - Started to work on this issue. Already have a block scope step that accepts a Maven Installation and changes the environment variables so when you invoke "sh maven" inside that block uses the defined maven installations. Next steps allow to define settings.xml by using Config File Provider plugin.

          Is "sh maven" an intermediate step in that dev?

          I've been thinking about that for a while, a was planning to do it at some point, but great if you can work on it: shouldn't there be a global mvn variable like the docker one?

          Baptiste Mathus added a comment - Is "sh maven" an intermediate step in that dev? I've been thinking about that for a while, a was planning to do it at some point, but great if you can work on it: shouldn't there be a global mvn variable like the docker one?

          Alvaro Lobato added a comment -

          Yes, the final objective would be to have an actual maven step without having to resort on sh, currently it is blocked by JENKINS-26055. In any case getting this first step will allow us to have some sort of maven integration and get closer to the final objective you mentioned.

          Alvaro Lobato added a comment - Yes, the final objective would be to have an actual maven step without having to resort on sh, currently it is blocked by JENKINS-26055 . In any case getting this first step will allow us to have some sort of maven integration and get closer to the final objective you mentioned.

          davidkarlsen added a comment -

          What version will this be in? I found no commit references

          davidkarlsen added a comment - What version will this be in? I found no commit references

          Jesse Glick added a comment -

          It is in a separate plugin.

          Jesse Glick added a comment - It is in a separate plugin.

            alobato Alvaro Lobato
            jglick Jesse Glick
            Votes:
            25 Vote for this issue
            Watchers:
            31 Start watching this issue

              Created:
              Updated:
              Resolved: