public class DatadogJobProperty<T extends Job<?,?>> extends JobProperty<T>
Modifier and Type | Class and Description |
---|---|
static class |
DatadogJobProperty.DatadogJobPropertyDescriptor |
BuildStep.PublisherList
ExtensionPoint.LegacyInstancesAreScopedToHudson
owner
BUILDERS, PUBLISHERS
Constructor and Description |
---|
DatadogJobProperty()
Runs when the
DatadogJobProperty class is created. |
Modifier and Type | Method and Description |
---|---|
String |
getTagFile()
Gets the tagFile set in the job configuration.
|
String |
getTagProperties()
Gets a list of tag properties to be submitted with the Build to Datadog.
|
boolean |
isEmitSCMEvents() |
boolean |
isEnableFile()
Gets the enableFile set in the job configuration.
|
boolean |
isEnableProperty()
Gets the enableProperty set in the job configuration.
|
String |
readTagFile(Run<?,?> r)
Method to read the contents of the specified file in the
DatadogJobProperty |
void |
setEmitSCMEvents(boolean emitSCMEvents)
Set the checkbox in the UI, used for Jenkins data binding
|
void |
setEnableFile(boolean enableFile)
Sets the enableFile set in the job configuration.
|
void |
setEnableProperty(boolean enableProperty)
Sets the enableProperty set in the job configuration.
|
void |
setTagFile(String tagFile)
Sets the tagFile set in the job configuration.
|
void |
setTagProperties(String tagProperties) |
getDescriptor, getJobAction, getJobActions, getJobOverrides, getProjectAction, getProjectActions, getRequiredMonitorService, getSubTasks, perform, prebuild, reconfigure, setOwner
@DataBoundConstructor public DatadogJobProperty()
DatadogJobProperty
class is created.public String getTagProperties()
@DataBoundSetter public void setTagProperties(String tagProperties)
tagProperties
- - The configured tag properties. Text area in the job configurationpublic String getTagFile()
@DataBoundSetter public void setTagFile(String tagFile)
tagFile
- - a String representing the relative path to a tagFilepublic boolean isEnableFile()
@DataBoundSetter public void setEnableFile(boolean enableFile)
enableFile
- - a boolean representing the enableFile checkboxpublic boolean isEnableProperty()
@DataBoundSetter public void setEnableProperty(boolean enableProperty)
enableProperty
- - a boolean representing the enableProperty checkboxpublic boolean isEmitSCMEvents()
Boolean
indicating if the user has configured Datadog to emit SCM related events.@DataBoundSetter public void setEmitSCMEvents(boolean emitSCMEvents)
emitSCMEvents
- - The checkbox status (checked/unchecked)public String readTagFile(Run<?,?> r)
DatadogJobProperty
r
- - Current buildCopyright © 2016–2023. All rights reserved.