Class ArgumentsActionImpl

  • All Implemented Interfaces:
    Action, ModelObject, org.jenkinsci.plugins.workflow.actions.PersistentAction

    @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
    public class ArgumentsActionImpl
    extends org.jenkinsci.plugins.workflow.actions.ArgumentsAction
    Implements ArgumentsAction by storing step arguments, with sanitization.
    • Constructor Detail

      • ArgumentsActionImpl

        public ArgumentsActionImpl​(@NonNull
                                   Map<String,​Object> stepArguments,
                                   @CheckForNull
                                   EnvVars env,
                                   @NonNull
                                   Set<String> sensitiveVariables)
      • ArgumentsActionImpl

        public ArgumentsActionImpl​(@NonNull
                                   Map<String,​Object> stepArguments)
        Create a step, sanitizing strings for secured content
    • Method Detail

      • replaceSensitiveVariables

        public static String replaceSensitiveVariables​(@NonNull
                                                       String input,
                                                       @CheckForNull
                                                       EnvVars variables,
                                                       @NonNull
                                                       Set<String> sensitiveVariables)
        See if sensitive environment variable content is in a string and replace the content with its associated variable name, otherwise return string unmodified
      • getArgumentsInternal

        @NonNull
        protected Map<String,​Object> getArgumentsInternal()
        Specified by:
        getArgumentsInternal in class org.jenkinsci.plugins.workflow.actions.ArgumentsAction
      • isUnmodifiedArguments

        public boolean isUnmodifiedArguments()
        Overrides:
        isUnmodifiedArguments in class org.jenkinsci.plugins.workflow.actions.ArgumentsAction