提交 760e3f65 编写于 作者: O Oliver Gondža

Merge pull request #1051 from slide/master

Allow SCMPollListener subclasses to provide UI elements
......@@ -74,6 +74,12 @@ import jenkins.model.RunAction2;
/**
* {@link Trigger} that checks for SCM updates periodically.
*
* You can add UI elements under the SCM section by creating a
* config.jelly or config.groovy in the resources area for
* your class that inherits from SCMTrigger and has the
* @{@link hudson.model.Extension} annotation. The UI should
* be wrapped in an f:section element to denote it.
*
* @author Kohsuke Kawaguchi
*/
public class SCMTrigger extends Trigger<SCMedItem> {
......
......@@ -30,4 +30,8 @@ THE SOFTWARE.
<f:entry field="ignorePostCommitHooks" title="${%Ignore post-commit hooks}">
<f:checkbox />
</f:entry>
<j:invokeStatic var="listeners" method="all" className="hudson.model.listeners.SCMPollListener"/>
<j:forEach var="l" items="${listeners}">
<st:include page="config" it="${l}" optional="true" />
</j:forEach>
</j:jelly>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册