Skip to content
This repository has been archived by the owner on Jun 13, 2023. It is now read-only.

Commit

Permalink
Merge pull request #19 from daspilker/symbol
Browse files Browse the repository at this point in the history
[JENKINS-37343] added DataBoundConstructor and Symbol for compatibility with DSLs
  • Loading branch information
simschla committed Oct 21, 2016
2 parents cfdd15f + 89e6c3e commit 6618dd8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pom.xml
Expand Up @@ -143,6 +143,11 @@
<artifactId>analysis-core</artifactId>
<version>1.58</version>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>structs</artifactId>
<version>1.3</version>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>jacoco</artifactId>
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/hudson/plugins/cigame/GameDescriptor.java
Expand Up @@ -2,6 +2,7 @@

import net.sf.json.JSONObject;

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

import hudson.Extension;
Expand All @@ -22,6 +23,7 @@

// Config page for the application (descriptor of the game plugin)
@Extension
@Symbol("ciGame")
public class GameDescriptor extends BuildStepDescriptor<Publisher> {

public static final String ACTION_LOGO_LARGE = "/plugin/ci-game/icons/game-32x32.png"; //$NON-NLS-1$
Expand Down
5 changes: 5 additions & 0 deletions src/main/java/hudson/plugins/cigame/GamePublisher.java
Expand Up @@ -24,9 +24,14 @@
import hudson.scm.ChangeLogSet.Entry;
import hudson.tasks.BuildStepMonitor;
import hudson.tasks.Notifier;
import org.kohsuke.stapler.DataBoundConstructor;

public class GamePublisher extends Notifier {

@DataBoundConstructor
public GamePublisher() {
}

@Override
public GameDescriptor getDescriptor() {
return (GameDescriptor) super.getDescriptor();
Expand Down

0 comments on commit 6618dd8

Please sign in to comment.