Class AbstractPropertiesProvider

    • Constructor Detail

      • AbstractPropertiesProvider

        public AbstractPropertiesProvider()
    • Method Detail

      • getContentType

        public ContentType getContentType()
        Description copied from class: ConfigProvider
        The content type of the configs this provider manages. e.g. can be used to display the content in the UI (editor).
        Specified by:
        getContentType in class ConfigProvider
        Returns:
        the type. null if no specific formatting should be supported.
      • getSensitiveContentForMasking

        @NonNull
        public List<String> getSensitiveContentForMasking​(Config configFile,
                                                          Run<?,​?> build)
        Description copied from class: ConfigProvider
        Obtain a list of sensitive Strings to mask for the given provider and build. For example if a UsernamePasswordCredentials is being injected into a file then the password (and possibly the username) from the resolved credential would need to be masked and should be returned here.
        Overrides:
        getSensitiveContentForMasking in class ConfigProvider
        Parameters:
        configFile - the file content to provide sensitive strings for.
        build - the build for which the configFile applies.
        Returns:
        List of Strings that need to be masked in the console.