Class UiPathAssets

    • Constructor Detail

      • UiPathAssets

        @DataBoundConstructor
        public UiPathAssets​(SelectEntry assetsAction,
                            java.lang.String orchestratorAddress,
                            java.lang.String orchestratorTenant,
                            java.lang.String folderName,
                            SelectEntry credentials,
                            java.lang.String filePath,
                            TraceLevel traceLevel)
        Data bound constructor responsible for setting the values param values to state
        Parameters:
        assetsAction - What to do with the assets: deploy or update.
        orchestratorAddress - Address of the orchestrator
        orchestratorTenant - Tenant on which the task needs to run
        folderName - Name of the folder in which the asset needs to updated
        credentials - credentials to make a connection
        filePath - json filePath
        traceLevel - The trace logging level. One of the following values: None, Critical, Error, Warning, Information, Verbose. (default None)
    • Method Detail

      • perform

        public void perform​(@Nonnull
                            Run<?,​?> run,
                            @Nonnull
                            FilePath workspace,
                            @Nonnull
                            EnvVars env,
                            @Nonnull
                            Launcher launcher,
                            @Nonnull
                            TaskListener listener)
                     throws java.lang.InterruptedException,
                            java.io.IOException
        Run this step.
        Specified by:
        perform in interface SimpleBuildStep
        Parameters:
        run - a build this is running as a part of
        workspace - a workspace to use for any file operations
        launcher - a way to start processes
        listener - a place to send output
        Throws:
        java.lang.InterruptedException - if the step is interrupted
        java.io.IOException - if something goes wrong
      • getAssetsAction

        public SelectEntry getAssetsAction()
        Getter for assetsAction
        Returns:
        The selected SelectEntry that was selected by the user.
      • getCredentials

        public SelectEntry getCredentials()
        Credentials ID, appearing as choice and will be responsible to extract credentials and use for orchestrator connection
        Returns:
        SelectEntry credentials
      • getOrchestratorAddress

        public java.lang.String getOrchestratorAddress()
        Base orchestrator URL
        Returns:
        String orchestratorAddress
      • getOrchestratorTenant

        public java.lang.String getOrchestratorTenant()
        Orchestrator Tenant
        Returns:
        String orchestratorTenant
      • getFolderName

        public java.lang.String getFolderName()
        Orchestrator Folder
        Returns:
        String folderName
      • getFilePath

        public java.lang.String getFilePath()
        CSV File Path
        Returns:
        String filePath
      • getTraceLevel

        public TraceLevel getTraceLevel()
        traceLevel
        Returns:
        TraceLevel traceLevel