I am sure I am missing something simple but I can't see it. Hopefully another set of eyes will help.

I am trying to create a custom build step but it is not appearing in the list of build steps in the dropdown in the GUI.

My really simple code follows. Can anyone tell me what is missing?

Thanks,

-- Greg


import hudson.Extension;
import hudson.Launcher;
import hudson.model.BuildListener;
import hudson.model.AbstractBuild;
import hudson.model.AbstractProject;
import hudson.tasks.BuildStepDescriptor;
import hudson.tasks.Builder;

public final class TestBuildStep extends Builder {

    @Extension
public static final class TestBuildStepDescriptor extends BuildStepDescriptor<Builder> {

        @Override
        public String getDisplayName() {
            return "Test Build Step";
        }

        @Override
public boolean isApplicable(final Class<? extends AbstractProject> jobType) {
            return true;
        }

    }

    @Override
public boolean perform(final AbstractBuild<?, ?> build, final Launcher launcher, final BuildListener listener) {
        return false;
    }
}


--
You received this message because you are subscribed to the Google Groups "Jenkins 
Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/5548E147.6060309%40redhat.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to