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
Modifier and TypeClassDescriptionstatic final class
Description/Hint provided if user does not fill out the plugin fields correctly.Nested classes/interfaces inherited from class hudson.tasks.Publisher
Publisher.DescriptorExtensionListImpl
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
Modifier and TypeFieldDescriptionstatic final String
For printing errors to jenkins console.static final String
For printing info to jenkins console.static final String
For printing warnings to jenkins console.Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetUrl()
void
perform
(Run<?, ?> run, FilePath workspace, Launcher launcher, TaskListener listener) void
setCredentialsId
(String credentialsId) void
setRepository
(String repository) void
setRevision
(String revision) Methods inherited from class hudson.tasks.Notifier
getDescriptor
Methods inherited from class hudson.tasks.Publisher
all, getProjectAction, needsToRunAfterFinalized, prebuild
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
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
-
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:
perform
in interfaceSimpleBuildStep
- Throws:
InterruptedException
IOException
-