@Extension
public static final class HudsonSoundsNotifier.HudsonSoundsDescriptor
extends hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher>
Modifier and Type | Class and Description |
---|---|
static class |
HudsonSoundsNotifier.HudsonSoundsDescriptor.SoundBite |
Modifier and Type | Field and Description |
---|---|
static hudson.util.VersionNumber |
STAPLER_JSON_BREAKING_CHANGE_VERSION_NUMBER |
Constructor and Description |
---|
HudsonSoundsDescriptor() |
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
public static final hudson.util.VersionNumber STAPLER_JSON_BREAKING_CHANGE_VERSION_NUMBER
public static HudsonSoundsNotifier.HudsonSoundsDescriptor getDescriptor()
public List<HudsonSoundsNotifier.HudsonSoundsDescriptor.SoundBite> getSounds()
public HudsonSoundsNotifier.HudsonSoundsDescriptor.SoundBite getSound(String soundId)
protected static TreeMap<String,HudsonSoundsNotifier.HudsonSoundsDescriptor.SoundBite> rebuildSoundsIndex(String urlString)
public String getSoundArchive()
public void setSoundArchive(String archive)
public HudsonSoundsNotifier.PLAY_METHOD getPlayMethod()
public void setPlayMethod(HudsonSoundsNotifier.PLAY_METHOD playMethod)
public String getSystemCommand()
public void setSystemCommand(String systemCommand)
public int getPipeTimeoutSecs()
public void setPipeTimeoutSecs(int pipeTimeout)
public boolean isApplicable(Class<? extends hudson.model.AbstractProject> jobType)
isApplicable
in class hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher>
public boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject json)
configure
in class hudson.model.Descriptor<hudson.tasks.Publisher>
public String getDisplayName()
getDisplayName
in class hudson.model.Descriptor<hudson.tasks.Publisher>
public HudsonSoundsNotifier newInstance(@Nullable org.kohsuke.stapler.StaplerRequest req, @Nonnull net.sf.json.JSONObject formData)
newInstance
in class hudson.model.Descriptor<hudson.tasks.Publisher>
public hudson.util.FormValidation doTestSound(@QueryParameter String selectedSound)
public hudson.util.FormValidation doCheckPipeTimeout(@QueryParameter int value)
public hudson.util.FormValidation doCheckSystemCommand(@QueryParameter String systemCommand)
public hudson.util.FormValidation doCheckSoundArchive(@QueryParameter String value)
value
- the value parameter from the requestprotected void playSoundFromUrl(URL url, Integer afterDelayMs, hudson.EnvVars vars) throws UnplayableSoundBiteException
UnplayableSoundBiteException
protected void playSound(String id) throws UnplayableSoundBiteException
UnplayableSoundBiteException
protected void playSound(String id, hudson.EnvVars vars) throws UnplayableSoundBiteException
UnplayableSoundBiteException
protected void playSound(String id, Integer afterDelayMs, hudson.EnvVars vars) throws UnplayableSoundBiteException
UnplayableSoundBiteException
protected InputStream getSoundBiteInputStream(HudsonSoundsNotifier.HudsonSoundsDescriptor.SoundBite soundBite) throws IOException, URISyntaxException
IOException
URISyntaxException
Copyright © 2016–2022. All rights reserved.