Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added symbols for concise DSL syntax #280

Merged
merged 1 commit into from Apr 8, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions pom.xml
Expand Up @@ -67,6 +67,11 @@
<version>2.9.3</version>
<!-- New source is here: https://github.com/sonyxperiadev/gerrit-events -->
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>structs</artifactId>
<version>1.1</version>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>git</artifactId>
Expand Down
Expand Up @@ -113,6 +113,7 @@

import jenkins.model.Jenkins;

import org.jenkinsci.Symbol;
import org.kohsuke.stapler.AncestorInPath;
import org.kohsuke.stapler.DataBoundConstructor;
import org.kohsuke.stapler.DataBoundSetter;
Expand Down Expand Up @@ -1837,6 +1838,7 @@ public Object readResolve() throws ObjectStreamException {
* The Descriptor for the Trigger.
*/
@Extension
@Symbol("gerrit")
public static final class DescriptorImpl extends TriggerDescriptor {

/**
Expand Down
Expand Up @@ -29,6 +29,7 @@
import hudson.model.Descriptor;
import hudson.model.Hudson;
import java.io.Serializable;
import org.jenkinsci.Symbol;
import org.kohsuke.stapler.DataBoundConstructor;

/**
Expand Down Expand Up @@ -63,6 +64,7 @@ public Class getCorrespondingEventClass() {
* The descriptor for the PluginChangeAbandonedEvent.
*/
@Extension
@Symbol("changeAbandoned")
public static class PluginChangeAbandonedEventDescriptor extends PluginGerritEventDescriptor {

@Override
Expand Down
Expand Up @@ -28,6 +28,7 @@
import hudson.Extension;
import hudson.model.Descriptor;
import hudson.model.Hudson;
import org.jenkinsci.Symbol;
import org.kohsuke.stapler.DataBoundConstructor;

import java.io.Serializable;
Expand Down Expand Up @@ -63,6 +64,7 @@ public Class getCorrespondingEventClass() {
* The descriptor for the PluginChangeMergedEvent.
*/
@Extension
@Symbol("changeMerged")
public static class PluginChangeMergedEventDescriptor extends PluginGerritEventDescriptor {

@Override
Expand Down
Expand Up @@ -29,6 +29,7 @@
import hudson.model.Descriptor;
import hudson.model.Hudson;
import java.io.Serializable;
import org.jenkinsci.Symbol;
import org.kohsuke.stapler.DataBoundConstructor;

/**
Expand Down Expand Up @@ -64,6 +65,7 @@ public Class getCorrespondingEventClass() {
* The descriptor for the PluginChangeRestoredEvent.
*/
@Extension
@Symbol("changeRestored")
public static class PluginChangeRestoredEventDescriptor extends PluginGerritEventDescriptor {

@Override
Expand Down
Expand Up @@ -28,6 +28,7 @@
import java.io.Serializable;
import java.util.regex.Pattern;

import org.jenkinsci.Symbol;
import org.kohsuke.stapler.DataBoundConstructor;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
Expand All @@ -49,6 +50,7 @@ public class PluginCommentAddedContainsEvent extends PluginGerritEvent
* The descriptor for PluginCommentAddedContainsEvent.
*/
@Extension
@Symbol("commentAddedContains")
public static class PluginCommentAddedContainsEventDescriptor extends
PluginGerritEventDescriptor {

Expand Down
Expand Up @@ -38,6 +38,7 @@
import hudson.model.Hudson;
import hudson.util.ListBoxModel;

import org.jenkinsci.Symbol;
import org.kohsuke.stapler.DataBoundConstructor;
import org.kohsuke.stapler.QueryParameter;

Expand Down Expand Up @@ -105,6 +106,7 @@ public Class getCorrespondingEventClass() {
* The Descriptor for the PluginCommentAddedEvent.
*/
@Extension
@Symbol("commentAdded")
public static class PluginCommentAddedEventDescriptor extends PluginGerritEventDescriptor {

@Override
Expand Down
Expand Up @@ -33,6 +33,7 @@
import hudson.model.Descriptor;
import hudson.model.Hudson;

import org.jenkinsci.Symbol;
import org.kohsuke.stapler.DataBoundConstructor;

import java.io.Serializable;
Expand Down Expand Up @@ -69,6 +70,7 @@ public Class getCorrespondingEventClass() {
* The Descriptor for the PluginDraftPublishedEvent.
*/
@Extension
@Symbol("draftPublished")
public static class PluginDraftPublishedEventDescriptor extends PluginGerritEventDescriptor {

/**
Expand Down
Expand Up @@ -32,6 +32,7 @@
import hudson.Extension;
import hudson.model.Descriptor;
import hudson.model.Hudson;
import org.jenkinsci.Symbol;
import org.kohsuke.stapler.DataBoundConstructor;

import java.io.Serializable;
Expand Down Expand Up @@ -133,6 +134,7 @@ public boolean shouldTriggerOn(GerritTriggeredEvent event) {
* The Descriptor for the PluginPatchsetCreatedEvent.
*/
@Extension
@Symbol("patchsetCreated")
public static class PluginPatchsetCreatedEventDescriptor extends PluginGerritEventDescriptor {

@Override
Expand Down
Expand Up @@ -28,6 +28,7 @@
import hudson.Extension;
import hudson.model.Descriptor;
import hudson.model.Hudson;
import org.jenkinsci.Symbol;
import org.kohsuke.stapler.DataBoundConstructor;

import java.io.Serializable;
Expand Down Expand Up @@ -63,6 +64,7 @@ public Class getCorrespondingEventClass() {
* The descriptor for the PluginRefUpdatedEvent.
*/
@Extension
@Symbol("refUpdated")
public static class PluginRefUpdatedEventDescriptor extends PluginGerritEventDescriptor {

@Override
Expand Down