public class TicsPublisher
extends hudson.tasks.Recorder
implements jenkins.tasks.SimpleBuildStep
| Modifier and Type | Class and Description |
|---|---|
static class |
TicsPublisher.DescriptorImpl |
hudson.tasks.Publisher.DescriptorExtensionListImpljenkins.tasks.SimpleBuildStep.LastBuildAction, jenkins.tasks.SimpleBuildStep.LastBuildActionFactory| Constructor and Description |
|---|
TicsPublisher(java.lang.String viewerUrl,
java.lang.String ticsPath,
java.lang.String credentialsId,
boolean checkQualityGate,
boolean failIfQualityGateFails)
Constructor arguments are injected by Jenkins, using settings stored through config.jelly.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
getCheckQualityGate()
Referenced in
config.jelly. |
java.lang.String |
getCredentialsId()
Referenced in
config.jelly. |
TicsPublisher.DescriptorImpl |
getDescriptor()
Descriptor is an object that has metadata about a Describable object, and
also serves as a factory (in a way this relationship is similar to
Object/Class relationship.
|
boolean |
getFailIfQualityGateFails()
Referenced in
config.jelly. |
java.lang.String |
getGlobalViewerUrl() |
static java.lang.String |
getMeasureApiUrl(java.lang.String tiobewebBaseUrl) |
hudson.tasks.BuildStepMonitor |
getRequiredMonitorService() |
java.lang.String |
getResolvedTiobewebBaseUrl()
Returns the tiobeweb URL based on the configured viewer url, tries project setting first, then global setting.
|
java.lang.String |
getTicsPath()
Referenced in
config.jelly. |
static java.lang.String |
getTiobewebBaseUrlFromGivenUrl(java.lang.String arg0) |
java.lang.String |
getViewerUrl()
Referenced in
config.jelly. |
boolean |
hasGlobalViewerUrl() |
void |
perform(hudson.model.Run<?,?> run,
hudson.FilePath workspace,
hudson.Launcher launcher,
hudson.model.TaskListener listener) |
all, getProjectAction, needsToRunAfterFinalized, prebuildgetProjectAction, getProjectActions, perform, perform, prebuild@DataBoundConstructor
public TicsPublisher(java.lang.String viewerUrl,
java.lang.String ticsPath,
java.lang.String credentialsId,
boolean checkQualityGate,
boolean failIfQualityGateFails)
public java.lang.String getTicsPath()
config.jelly.public java.lang.String getViewerUrl()
config.jelly.public java.lang.String getCredentialsId()
config.jelly.public boolean hasGlobalViewerUrl()
public java.lang.String getGlobalViewerUrl()
public boolean getCheckQualityGate()
config.jelly.public boolean getFailIfQualityGateFails()
config.jelly.public void perform(@Nonnull
hudson.model.Run<?,?> run,
@Nonnull
hudson.FilePath workspace,
@Nonnull
hudson.Launcher launcher,
@Nonnull
hudson.model.TaskListener listener)
throws java.io.IOException,
java.lang.RuntimeException,
java.lang.InterruptedException
perform in interface jenkins.tasks.SimpleBuildStepjava.io.IOExceptionjava.lang.RuntimeExceptionjava.lang.InterruptedExceptionpublic hudson.tasks.BuildStepMonitor getRequiredMonitorService()
getRequiredMonitorService in interface hudson.tasks.BuildSteppublic TicsPublisher.DescriptorImpl getDescriptor()
getDescriptor in interface hudson.model.Describable<hudson.tasks.Publisher>getDescriptor in class hudson.tasks.Recorderpublic static java.lang.String getMeasureApiUrl(java.lang.String tiobewebBaseUrl)
public java.lang.String getResolvedTiobewebBaseUrl()
throws hudson.plugins.tics.TicsPublisher.InvalidTicsViewerUrl
InvalidTicsViewerUrlhudson.plugins.tics.TicsPublisher.InvalidTicsViewerUrlpublic static java.lang.String getTiobewebBaseUrlFromGivenUrl(java.lang.String arg0)
throws hudson.plugins.tics.TicsPublisher.InvalidTicsViewerUrl
hudson.plugins.tics.TicsPublisher.InvalidTicsViewerUrl