Skip to content
Permalink
Browse files

[FIXED JENKINS-37394] Add @symbol annotations for step and tool. (#35)

  • Loading branch information...
abayer authored and wolfs committed Sep 23, 2016
1 parent 68c9d80 commit eabffa3a25374d8b6e851a7ffa95aadc81c28a6b
@@ -37,6 +37,8 @@ sourceCompatibility = '1.6'

dependencies {
compile 'org.jenkins-ci.lib:dry-run-lib:0.1'
compileOnly 'org.jenkins-ci:symbol-annotation:1.3'
jenkinsPlugins 'org.jenkins-ci.plugins:structs:1.3@jar'

testCompile 'org.spockframework:spock-core:0.7-groovy-1.8'
jenkinsTest 'org.jenkins-ci.main:jenkins-test-harness:2.8@jar'
@@ -19,6 +19,7 @@
import hudson.tools.ToolInstallation;
import hudson.util.ArgumentListBuilder;
import org.apache.commons.lang.StringUtils;
import org.jenkinsci.Symbol;
import org.jenkinsci.lib.dryrun.DryRun;
import org.kohsuke.stapler.DataBoundConstructor;

@@ -354,7 +355,7 @@ public DescriptorImpl getDescriptor() {
return (DescriptorImpl) super.getDescriptor();
}

@Extension
@Extension @Symbol("gradle")
public static final class DescriptorImpl extends BuildStepDescriptor<Builder> {

@CopyOnWrite
@@ -14,6 +14,7 @@
import hudson.tools.ToolInstaller;
import hudson.tools.ToolProperty;
import jenkins.security.MasterToSlaveCallable;
import org.jenkinsci.Symbol;
import org.kohsuke.stapler.DataBoundConstructor;

import javax.inject.Inject;
@@ -89,7 +90,7 @@ public GradleInstallation forNode(Node node, TaskListener log) throws IOExceptio
return new GradleInstallation(getName(), translateFor(node, log), getProperties().toList());
}

@Extension
@Extension @Symbol("gradle")
public static class DescriptorImpl extends ToolDescriptor<GradleInstallation> {

public DescriptorImpl() {

0 comments on commit eabffa3

Please sign in to comment.
You can’t perform that action at this time.