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 class
TeamscaleUploadBuilder.DescriptorImpl
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
Fields Modifier and Type Field Description static String
ERROR
For printing errors to jenkins console.static String
INFO
For printing info to jenkins console.static String
WARNING
For printing warnings to jenkins console.-
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
-
Constructor Summary
Constructors Constructor Description 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCredentialsId()
String
getIncludePattern()
String
getPartition()
String
getReportFormatId()
String
getRevision()
String
getTeamscaleProject()
String
getUploadMessage()
String
getUrl()
void
perform(Run<?,?> run, FilePath workspace, Launcher launcher, TaskListener listener)
void
setCredentialsId(String credentialsId)
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
-
-
-
-
Field Detail
-
ERROR
public static final String ERROR
For printing errors to jenkins console.- See Also:
- Constant Field Values
-
WARNING
public static final String WARNING
For printing warnings to jenkins console.- See Also:
- Constant Field Values
-
INFO
public static final String INFO
For printing info to jenkins console.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
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 Detail
-
getUrl
public String getUrl()
-
getTeamscaleProject
public String getTeamscaleProject()
-
getPartition
public String getPartition()
-
getUploadMessage
public String getUploadMessage()
-
getIncludePattern
public String getIncludePattern()
-
getReportFormatId
public String getReportFormatId()
-
getCredentialsId
public String getCredentialsId()
-
setCredentialsId
public void setCredentialsId(String credentialsId)
-
getRevision
public String getRevision()
-
setRevision
@DataBoundSetter public void setRevision(String revision)
-
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
-
-