Interface IBaseCommandData

    • Method Detail

      • logError

        void logError​(String message)
      • logStatus

        void logStatus​(String status)
      • setCommandState

        void setCommandState​(CommandState state)
        Set the command state for the associated running command.
        Parameters:
        state - the result command state.
      • getCommandState

        CommandState getCommandState()
        Get the command state for the associated completed command.
        Returns:
        the result command state.
      • getEnvVars

        EnvVars getEnvVars()
        To get the environment variable bindings, this method should be called in prefer to getJobContext().envVars(). In the pipeline environment, the environment variables returned from getJobContext().envVars() is not complete. The default implementation of this method in BaseCommandContext handles this.