public class XrayImportBuilder
extends hudson.tasks.Notifier
implements jenkins.tasks.SimpleBuildStep
2 - the job was created on a pré-1.3.0 version, but has never been runned in 1.3.0 or higher versions. In this case, if the user opens the job configurations, the fields must be populated.
3 - the job was created on pré-1.3.0. blueprint String fields need to be populated with values on perform.
Any possible scenario must also be considered.
XrayImportBuilderCompatibilityDelegate
Modifier and Type | Class and Description |
---|---|
static class |
XrayImportBuilder.Descriptor |
hudson.tasks.Publisher.DescriptorExtensionListImpl
jenkins.tasks.SimpleBuildStep.LastBuildAction, jenkins.tasks.SimpleBuildStep.LastBuildActionFactory
Constructor and Description |
---|
XrayImportBuilder(String serverInstance,
String endpointName,
String projectKey,
String testEnvironments,
String testPlanKey,
String fixVersion,
String importFilePath,
String testExecKey,
String revision,
String importInfo,
String testImportInfo,
String inputInfoSwitcher,
String inputTestInfoSwitcher,
String importToSameExecution,
String credentialId,
String importInParallel)
This constructor is compatible with pipelines projects
|
all, getProjectAction, needsToRunAfterFinalized, prebuild
getProjectAction, getProjectActions, perform, perform, prebuild
@DataBoundConstructor public XrayImportBuilder(String serverInstance, String endpointName, String projectKey, String testEnvironments, String testPlanKey, String fixVersion, String importFilePath, String testExecKey, String revision, String importInfo, String testImportInfo, String inputInfoSwitcher, String inputTestInfoSwitcher, String importToSameExecution, @Nullable String credentialId, String importInParallel)
"Anyway code run from Pipeline should take any configuration values as literal strings and make no attempt to perform variable substitution"
serverInstance
- the server configuration idendpointName
- the endpoint to be usedprojectKey
- the project keytestEnvironments
- the test environmentstestPlanKey
- the test plan keyfixVersion
- the fix versionimportFilePath
- the path of the result file to be importedtestExecKey
- the test execution keyrevision
- the revisionimportInfo
- the importation info file or json contentinputInfoSwitcher
- filePath or fileContent switchercredentialId
- public XrayInstance getXrayInstance()
@DataBoundSetter public void setXrayInstance(XrayInstance xrayInstance)
public com.xpandit.xray.model.Endpoint getEndpoint()
@DataBoundSetter public void setEndpoint(com.xpandit.xray.model.Endpoint endpoint)
public String getFormatSuffix()
public String getServerInstance()
public void setServerInstance(String serverInstance)
public void setFormatSuffix(String formatSuffix)
public String getEndpointName()
public void setEndpointName(String endpointName)
public String getProjectKey()
public void setProjectKey(String projectKey)
public String getTestEnvironments()
public void setTestEnvironments(String testEnvironments)
public String getTestPlanKey()
public void setTestPlanKey(String testPlanKey)
public String getFixVersion()
public void setFixVersion(String fixVersion)
public String getImportFilePath()
public void setImportFilePath(String importFilePath)
public String getTestExecKey()
public void setTestExecKey(String testExecKey)
public String getRevision()
public void setRevision(String revision)
public String getImportInfo()
public void setImportInfo(String importInfo)
public String getImportToSameExecution()
public void setImportToSameExecution(String importToSameExecution)
public String getImportInParallel()
public void setImportInParallel(String importInParallel)
public String getCredentialId()
public void setCredentialId(String credentialId)
public String getFormatName()
public String getInputInfoSwitcher()
public String getInputTestInfoSwitcher()
public void setInputInfoSwitcher(String inputInfoSwitcher)
public String defaultFormats()
public void perform(@Nonnull hudson.model.Run<?,?> build, @Nonnull hudson.FilePath workspace, @Nonnull hudson.Launcher launcher, @Nonnull hudson.model.TaskListener listener) throws InterruptedException, IOException
perform
in interface jenkins.tasks.SimpleBuildStep
InterruptedException
IOException
public hudson.tasks.BuildStepMonitor getRequiredMonitorService()
getRequiredMonitorService
in interface hudson.tasks.BuildStep
public String getTestImportInfo()
public void setTestImportInfo(String testImportInfo)
Copyright © 2016–2022. All rights reserved.