Package com.uipath.uipathpackage
Class UiPathAssets
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Builder
com.uipath.uipathpackage.UiPathAssets
- All Implemented Interfaces:
ExtensionPoint
,Describable<Builder>
,BuildStep
,SimpleBuildStep
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherList
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
Nested classes/interfaces inherited from interface jenkins.tasks.SimpleBuildStep
SimpleBuildStep.LastBuildAction, SimpleBuildStep.LastBuildActionFactory
-
Field Summary
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
Constructor Summary
ConstructorDescriptionUiPathAssets
(SelectEntry assetsAction, String orchestratorAddress, String orchestratorTenant, String folderName, SelectEntry credentials, String filePath, TraceLevel traceLevel) Data bound constructor responsible for setting the values param values to state -
Method Summary
Modifier and TypeMethodDescriptionGetter for assetsActionCredentials ID, appearing as choice and will be responsible to extract credentials and use for orchestrator connectionCSV File PathOrchestrator FolderBase orchestrator URLOrchestrator TenanttraceLevelvoid
Run this step.Methods inherited from class hudson.tasks.Builder
all, getDescriptor, getRequiredMonitorService, prebuild
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectAction, getProjectActions, perform, perform, prebuild
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface hudson.tasks.BuildStep
getProjectAction, getProjectActions, getRequiredMonitorService, perform, prebuild
Methods inherited from interface jenkins.tasks.SimpleBuildStep
perform, perform, requiresWorkspace
-
Constructor Details
-
UiPathAssets
@DataBoundConstructor public UiPathAssets(SelectEntry assetsAction, String orchestratorAddress, String orchestratorTenant, String folderName, SelectEntry credentials, 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 orchestratororchestratorTenant
- Tenant on which the task needs to runfolderName
- Name of the folder in which the asset needs to updatedcredentials
- credentials to make a connectionfilePath
- json filePathtraceLevel
- The trace logging level. One of the following values: None, Critical, Error, Warning, Information, Verbose. (default None)
-
-
Method Details
-
perform
public void perform(@Nonnull Run<?, ?> run, @Nonnull FilePath workspace, @Nonnull EnvVars env, @Nonnull Launcher launcher, @Nonnull TaskListener listener) throws InterruptedException, IOExceptionRun this step.- Specified by:
perform
in interfaceSimpleBuildStep
- Parameters:
run
- a build this is running as a part ofworkspace
- a workspace to use for any file operationslauncher
- a way to start processeslistener
- a place to send output- Throws:
InterruptedException
- if the step is interruptedIOException
- if something goes wrong
-
getAssetsAction
Getter for assetsAction- Returns:
- The selected SelectEntry that was selected by the user.
-
getCredentials
Credentials ID, appearing as choice and will be responsible to extract credentials and use for orchestrator connection- Returns:
- SelectEntry credentials
-
getOrchestratorAddress
Base orchestrator URL- Returns:
- String orchestratorAddress
-
getOrchestratorTenant
Orchestrator Tenant- Returns:
- String orchestratorTenant
-
getFolderName
Orchestrator Folder- Returns:
- String folderName
-
getFilePath
CSV File Path- Returns:
- String filePath
-
getTraceLevel
traceLevel- Returns:
- TraceLevel traceLevel
-