Object MvnJob

  • All Implemented Interfaces:

    
    public class MvnJob
    
                        
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final Cache mvnCache
      public final static MvnJob INSTANCE
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Unit mvnJob(PipelineBuilder $self, String name, String cmd, Function1<JobBuilder, Unit> setup) Creates a maven based job.
      final Unit mvnwJob(PipelineBuilder $self, String name, String cmd, Function1<JobBuilder, Unit> setup) Creates a maven based job and uses the project local maven wrapper to execute goals.
      final String mvnw(String command)
      final String mvn(String command)
      final Cache getMvnCache()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • mvnJob

         final Unit mvnJob(PipelineBuilder $self, String name, String cmd, Function1<JobBuilder, Unit> setup)

        Creates a maven based job.

        Via cmd you can define the maven command to run. All executed commands with this job will cache (pull-push) the maven repository automatically. Standard image to be used is: maven:3.9.1-eclipse-temurin-17

        Can be customized with setup.

      • mvnwJob

         final Unit mvnwJob(PipelineBuilder $self, String name, String cmd, Function1<JobBuilder, Unit> setup)

        Creates a maven based job and uses the project local maven wrapper to execute goals.

        Via cmd you can define the maven command to run. All executed commands with this job will cache (pull-push) the maven repository automatically. Standard image to be used is: eclipse-temurin:17.0.7_7-jdk

        Can be customized with setup.