Package eu.cqse.teamscale.jenkins.upload
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 hudson.tasks.Publisher
Publisher.DescriptorExtensionListImplNested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherListNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudsonNested classes/interfaces inherited from interface jenkins.tasks.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.static final StringFor printing warnings to jenkins console.Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetUrl()voidperform(Run<?, ?> run, FilePath workspace, Launcher launcher, TaskListener listener) voidsetCredentialsId(String credentialsId) voidsetRepository(String repository) voidsetRevision(String revision) Methods inherited from class hudson.tasks.Notifier
getDescriptorMethods inherited from class hudson.tasks.Publisher
all, getProjectAction, needsToRunAfterFinalized, prebuildMethods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectActions, perform, perform, prebuildMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.tasks.BuildStep
getProjectAction, getProjectActions, getRequiredMonitorService, perform, prebuildMethods inherited from interface jenkins.tasks.SimpleBuildStep
perform, perform, requiresWorkspace
-
Field Details
-
ERROR
-
WARNING
-
INFO
-
-
Constructor Details
-
TeamscaleUploadBuilder
@DataBoundConstructor public TeamscaleUploadBuilder(String url, String credentialsId, String teamscaleProject, String partition, String uploadMessage, String includePattern, String reportFormatId, 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
-
perform
public void perform(@Nonnull Run<?, ?> run, FilePath workspace, @Nonnull Launcher launcher, @Nonnull TaskListener listener) throws InterruptedException, IOException- Specified by:
performin interfaceSimpleBuildStep- Throws:
InterruptedExceptionIOException
-