Class MvnGlobalSettingsProvider

java.lang.Object
hudson.model.AbstractDescribableImpl<GlobalSettingsProvider>
jenkins.mvn.GlobalSettingsProvider
org.jenkinsci.plugins.configfiles.maven.job.MvnGlobalSettingsProvider
All Implemented Interfaces:
ExtensionPoint, Describable<GlobalSettingsProvider>

public class MvnGlobalSettingsProvider extends GlobalSettingsProvider
This provider delivers the global settings.xml to the job during job/project execution.
Important: Do not rename this class!! For backward compatibility, this class is also created via reflection from the maven-plugin.
Author:
Dominik Bartholdi (imod)
  • Constructor Details

    • MvnGlobalSettingsProvider

      @Deprecated public MvnGlobalSettingsProvider()
      Deprecated.
      Default constructor used to load class via reflection by the maven-plugin for backward compatibility
    • MvnGlobalSettingsProvider

      @DataBoundConstructor public MvnGlobalSettingsProvider(String settingsConfigId)
  • Method Details

    • getSettingsConfigId

      public String getSettingsConfigId()
    • setSettingsConfigId

      public void setSettingsConfigId(String settingsConfigId)
    • supplySettings

      public FilePath supplySettings(AbstractBuild<?,?> build, TaskListener listener)
      Specified by:
      supplySettings in class GlobalSettingsProvider
    • getSensitiveContentForMasking

      @NonNull public List<String> getSensitiveContentForMasking(AbstractBuild<?,?> build)
      Obtain a list of sensitive Strings to mask for the given provider and build. For example if a UsernamePasswordCredentials credential is being injected into the file then the password (and possibly the username) would need to be masked and should be returned here.
      Returns:
      List of Strings that need to be masked in the console.