public interface HookScriptConfig
HookScript
to run for a given scope
, and defines the triggers
for which it should be invoked.
A single script can be configured multiple times for different scopes. In such cases, the configuration for the most specific scope supersedes less specific ones. For example, if a script is configured at both project and repository level, the repository-level configuration overrides and replaces the project-level config for that repository; the two are not merged.
When a script is configured for a given scope, it is invoked according to its type
.
Configuration cannot override type. If a given script implements a pre
-style
hook, it can only be run as a PreRepositoryHook
. Configuration only controls what scopes a script is run
for, and for which triggers.
Modifier and Type | Method and Description |
---|---|
Scope |
getScope() |
HookScript |
getScript() |
Set<String> |
getTriggerIds() |
@Nonnull HookScript getScript()
@Nonnull Set<String> getTriggerIds()
trigger IDs
for
which the script should be invoked, with an empty denoting all triggersCopyright © 2019 Atlassian. All rights reserved.