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
public class TeamscaleUploadBuilder extends Notifier implements SimpleBuildStep
The Teamscale Jenkins plugin.
The inheritance from Notifier marks is as a post build action plugin.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTeamscaleUploadBuilder.DescriptorImplDescription/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
Fields Modifier and Type Field Description static StringERRORFor printing errors to jenkins console.static StringINFOFor printing info to jenkins console.static StringWARNINGFor printing warnings to jenkins console.Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS -
Constructor Summary
-
Method Summary
Modifier and Type Method Description StringgetCredentialsId()StringgetIncludePattern()StringgetPartition()StringgetReportFormatId()StringgetRevision()StringgetTeamscaleProject()StringgetUploadMessage()StringgetUrl()voidperform(Run<?,?> run, FilePath workspace, Launcher launcher, TaskListener listener)voidsetCredentialsId(String credentialsId)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, prebuild
-
Field Details
-
ERROR
For printing errors to jenkins console.- See Also:
- Constant Field Values
-
WARNING
For printing warnings to jenkins console.- See Also:
- Constant Field Values
-
INFO
For printing info to jenkins console.- See Also:
- Constant Field Values
-
-
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
-
getUploadMessage
-
getIncludePattern
-
getReportFormatId
-
getCredentialsId
-
setCredentialsId
-
getRevision
-
setRevision
-
perform
public void perform(@Nonnull Run<?,?> run, FilePath workspace, @Nonnull Launcher launcher, @Nonnull TaskListener listener) throws InterruptedException, IOException- Specified by:
performin interfaceSimpleBuildStep- Throws:
InterruptedExceptionIOException
-