Class TeamscaleUploadBuilder
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Publisher
hudson.tasks.Notifier
eu.cqse.teamscale.jenkins.upload.TeamscaleUploadBuilder
- All Implemented Interfaces:
ExtensionPoint, Describable<Publisher>, BuildStep, SimpleBuildStep
The Teamscale Jenkins plugin.
The inheritance from Notifier marks is as a post build action plugin.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classDescription/Hint provided if user does not fill out the plugin fields correctly.Nested classes/interfaces inherited from class Publisher
Publisher.DescriptorExtensionListImplNested classes/interfaces inherited from interface BuildStep
BuildStep.PublisherListNested classes/interfaces inherited from interface ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudsonNested classes/interfaces inherited from interface SimpleBuildStep
SimpleBuildStep.LastBuildAction, SimpleBuildStep.LastBuildActionFactory -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringFor printing errors to jenkins console.static final StringFor printing info to jenkins console.Fields inherited from interface BuildStep
BUILDERS, PUBLISHERS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable String@Nullable String@Nullable String@Nullable StringgetUrl()voidperform(@NonNull Run<?, ?> run, @NonNull FilePath workspace, @NonNull EnvVars env, @NonNull Launcher launcher, @NonNull TaskListener listener) voidsetCredentialsId(String credentialsId) voidsetRepository(@Nullable String repository) voidsetResultNoReports(String resultOnNoReports) voidsetResultOnUploadFailure(String resultOnUploadFailure) voidsetRevision(@Nullable String revision) Methods inherited from class Notifier
getDescriptorMethods inherited from class Publisher
all, getProjectAction, needsToRunAfterFinalized, prebuildMethods inherited from class BuildStepCompatibilityLayer
getProjectAction, getProjectActions, perform, perform, prebuildMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BuildStep
getProjectAction, getProjectActions, getRequiredMonitorService, perform, prebuildMethods inherited from interface SimpleBuildStep
perform, perform, requiresWorkspace
-
Field Details
-
ERROR
-
INFO
-
-
Constructor Details
-
TeamscaleUploadBuilder
@DataBoundConstructor public TeamscaleUploadBuilder(String url, String credentialsId, String teamscaleProject, String partition, String uploadMessage, String includePattern, String reportFormatId, @Nullable String revision) Automatic data binding on save of the plugin configuration in jenkins.- Parameters:
url- to save.teamscaleProject- to save.partition- to save.uploadMessage- to save.includePattern- to save.reportFormatId- to save.revision- to save. Required in pipeline projects.
-
-
Method Details
-
getUrl
-
getTeamscaleProject
-
getPartition
-
getRepository
-
getUploadMessage
-
getIncludePattern
-
getReportFormatId
-
getCredentialsId
-
setCredentialsId
-
getRevision
-
setRevision
-
setRepository
-
getResultNoReports
-
setResultNoReports
-
getResultOnUploadFailure
-
setResultOnUploadFailure
-
perform
public void perform(@NonNull Run<?, ?> run, @NonNull FilePath workspace, @NonNull EnvVars env, @NonNull Launcher launcher, @NonNull TaskListener listener) throws InterruptedException, IOException- Specified by:
performin interfaceSimpleBuildStep- Throws:
InterruptedExceptionIOException
-