Class MavenModuleSet

    • Field Detail

      • version

        public final Control version
      • goals

        public final Control goals
    • Constructor Detail

      • MavenModuleSet

        public MavenModuleSet​(com.google.inject.Injector injector,
                              URL url,
                              String name)
    • Method Detail

      • setGoals

        public void setGoals​(String goals)
      • addBuildSettings

        public <T extends PostBuildStep> T addBuildSettings​(Class<T> type,
                                                            Consumer<T> configuration)
        Enables the specified settings for this job. Settings (i.e. publishers) are stored in a list member to provide later access for modification. After the settings have been added they are configured with the specified configuration lambda. Afterwards, the job configuration page still is visible and not saved.
        Type Parameters:
        T - the type of the settings
        Parameters:
        type - the settings to configure
        configuration - the additional configuration options for this job
        See Also:
        addBuildSettings(Class), Job.getPublisher(Class)
      • addBuildSettings

        public <T extends PostBuildStep> T addBuildSettings​(Class<T> type)
        Enables the specified settings for this job. Settings (i.e. publishers) are stored in a list member to provide later access for modification. Afterwards, the job configuration page still is visible and not saved.
        Type Parameters:
        T - the type of the settings
        Parameters:
        type - the settings to configure
        See Also:
        addBuildSettings(Class), Job.getPublisher(Class)
      • getBuildSettings

        public <T extends PostBuildStep> T getBuildSettings​(Class<T> type)
        Wrapper function to get a previously added build settings object.
        Parameters:
        type - the type of the build settings to be retrieved
        Returns:
        the build settings object