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
public class UiPathAssets extends Builder implements SimpleBuildStep
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UiPathAssets.DescriptorImpl
Descriptor
forBuilder
-
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
Constructors Constructor Description 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
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SelectEntry
getAssetsAction()
Getter for assetsActionSelectEntry
getCredentials()
Credentials ID, appearing as choice and will be responsible to extract credentials and use for orchestrator connectionjava.lang.String
getFilePath()
CSV File Pathjava.lang.String
getFolderName()
Orchestrator Folderjava.lang.String
getOrchestratorAddress()
Base orchestrator URLjava.lang.String
getOrchestratorTenant()
Orchestrator TenantTraceLevel
getTraceLevel()
traceLevelvoid
perform(Run<?,?> run, FilePath workspace, EnvVars env, Launcher launcher, TaskListener listener)
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 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 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 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 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:
java.lang.InterruptedException
- if the step is interruptedjava.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
-
-