Package jenkins.mvn

Class SettingsProvider

    • Constructor Detail

      • SettingsProvider

        public SettingsProvider()
    • Method Detail

      • supplySettings

        public abstract FilePath supplySettings​(AbstractBuild<?,​?> build,
                                                TaskListener listener)
        Configure maven launcher argument list with adequate settings path. Implementations should be aware that this method might get called multiple times during a build.
        Returns:
        the filepath to the provided file. null if no settings will be provided.
      • getSettingsFilePath

        public static FilePath getSettingsFilePath​(SettingsProvider settings,
                                                   AbstractBuild<?,​?> build,
                                                   TaskListener listener)
        Convenience method handling all null checks. Provides the path on the (possible) remote settings file.
        Parameters:
        settings - the provider to be used
        build - the active build
        listener - the listener of the current build
        Returns:
        the path to the settings.xml
      • getSettingsRemotePath

        public static String getSettingsRemotePath​(SettingsProvider settings,
                                                   AbstractBuild<?,​?> build,
                                                   TaskListener listener)
        Convenience method handling all null checks. Provides the path on the (possible) remote settings file.
        Parameters:
        settings - the provider to be used
        build - the active build
        listener - the listener of the current build
        Returns:
        the path to the settings.xml