Package io.jenkins.plugins.coverage
Klasse CoveragePublisher
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Publisher
hudson.tasks.Recorder
io.jenkins.plugins.coverage.CoveragePublisher
- Alle implementierten Schnittstellen:
ExtensionPoint
,Describable<Publisher>
,BuildStep
,SimpleBuildStep
-
Verschachtelte Klassen - Übersicht
Modifizierer und TypKlasseBeschreibungstatic final class
Von Klasse geerbte verschachtelte Klassen/Schnittstellen hudson.tasks.Publisher
Publisher.DescriptorExtensionListImpl
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen hudson.tasks.BuildStep
BuildStep.PublisherList
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen jenkins.tasks.SimpleBuildStep
SimpleBuildStep.LastBuildAction, SimpleBuildStep.LastBuildActionFactory
-
Feldübersicht
Von Schnittstelle geerbte Felder hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungboolean
boolean
getScm()
List
<io.jenkins.plugins.prism.SourceCodeDirectory> Gets the paths to the directories that contain the source code.getTag()
boolean
boolean
boolean
boolean
boolean
void
perform
(Run<?, ?> run, FilePath workspace, Launcher launcher, TaskListener listener) protected Object
Called after de-serialization to retain backward compatibility or to populate new elements (that would be otherwise initialized tonull
).void
setAdapters
(List<CoverageAdapter> adapters) void
setApplyThresholdRecursively
(boolean applyThresholdRecursively) void
setCalculateDiffForChangeRequests
(boolean calculateDiffForChangeRequests) Veraltet.not needed anymore.void
setChecksName
(String checksName) void
setFailBuildIfCoverageDecreasedInChangeRequest
(boolean failBuildIfCoverageDecreasedInChangeRequest) void
setFailNoReports
(boolean failNoReports) void
setFailUnhealthy
(boolean failUnhealthy) void
setFailUnstable
(boolean failUnstable) void
setGlobalThresholds
(List<Threshold> globalThresholds) void
Sets the SCM that should be used to find the reference build for.void
setSkipPublishingChecks
(boolean skipPublishingChecks) void
setSourceCodeEncoding
(String sourceCodeEncoding) Sets the encoding to use to read source files.void
setSourceDirectories
(List<io.jenkins.plugins.prism.SourceCodeDirectory> sourceCodeDirectories) Sets the paths to the directories that contain the source code.void
setSourceFileResolver
(DefaultSourceFileResolver sourceFileResolver) void
Von Klasse geerbte Methoden hudson.tasks.Recorder
getDescriptor
Von Klasse geerbte Methoden hudson.tasks.Publisher
all, getProjectAction, needsToRunAfterFinalized, prebuild
Von Klasse geerbte Methoden hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectActions, perform, perform, prebuild
Von Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Von Schnittstelle geerbte Methoden hudson.tasks.BuildStep
getProjectAction, getProjectActions, perform, prebuild
Von Schnittstelle geerbte Methoden jenkins.tasks.SimpleBuildStep
perform, perform, requiresWorkspace
-
Konstruktordetails
-
CoveragePublisher
@DataBoundConstructor public CoveragePublisher()
-
-
Methodendetails
-
perform
public void perform(@NonNull Run<?, ?> run, @NonNull FilePath workspace, @NonNull Launcher launcher, @NonNull TaskListener listener) throws InterruptedException, IOException- Angegeben von:
perform
in SchnittstelleSimpleBuildStep
- Löst aus:
InterruptedException
IOException
-
getRequiredMonitorService
- Angegeben von:
getRequiredMonitorService
in SchnittstelleBuildStep
-
getAdapters
-
setAdapters
-
getGlobalThresholds
-
setGlobalThresholds
-
isFailUnhealthy
public boolean isFailUnhealthy() -
setFailUnhealthy
@DataBoundSetter public void setFailUnhealthy(boolean failUnhealthy) -
isFailUnstable
public boolean isFailUnstable() -
setFailUnstable
@DataBoundSetter public void setFailUnstable(boolean failUnstable) -
isFailNoReports
public boolean isFailNoReports() -
setScm
Sets the SCM that should be used to find the reference build for. The the SCM will be selected based on a substring comparison, there is no need to specify the full name.- Parameter:
scm
- the ID of the SCM to use (a substring of the full ID)
-
getScm
-
setFailNoReports
@DataBoundSetter public void setFailNoReports(boolean failNoReports) -
getSourceFileResolver
-
setSourceFileResolver
-
getTag
-
setTag
-
getFailBuildIfCoverageDecreasedInChangeRequest
public boolean getFailBuildIfCoverageDecreasedInChangeRequest() -
getCalculateDiffForChangeRequests
public boolean getCalculateDiffForChangeRequests() -
setCalculateDiffForChangeRequests
@Deprecated @DataBoundSetter public void setCalculateDiffForChangeRequests(boolean calculateDiffForChangeRequests) Veraltet.not needed anymore. Diff is calculated automatically if reference build found. -
setSkipPublishingChecks
@DataBoundSetter public void setSkipPublishingChecks(boolean skipPublishingChecks) -
isSkipPublishingChecks
public boolean isSkipPublishingChecks() -
getChecksName
-
setChecksName
-
setFailBuildIfCoverageDecreasedInChangeRequest
@DataBoundSetter public void setFailBuildIfCoverageDecreasedInChangeRequest(boolean failBuildIfCoverageDecreasedInChangeRequest) -
isApplyThresholdRecursively
public boolean isApplyThresholdRecursively() -
setApplyThresholdRecursively
@DataBoundSetter public void setApplyThresholdRecursively(boolean applyThresholdRecursively) -
getSourceCodeEncoding
-
setSourceCodeEncoding
Sets the encoding to use to read source files.- Parameter:
sourceCodeEncoding
- the encoding, e.g. "ISO-8859-1"
-
getSourceDirectories
Gets the paths to the directories that contain the source code.- Gibt zurück:
- directories containing the source code
-
setSourceDirectories
@DataBoundSetter public void setSourceDirectories(List<io.jenkins.plugins.prism.SourceCodeDirectory> sourceCodeDirectories) Sets the paths to the directories that contain the source code. If not relative and thus not part of the workspace then these directories need to be added in Jenkins global configuration to prevent accessing of forbidden resources.- Parameter:
sourceCodeDirectories
- directories containing the source code
-
readResolve
Called after de-serialization to retain backward compatibility or to populate new elements (that would be otherwise initialized tonull
).- Gibt zurück:
- this
-