I didn't think the config.jelly was needed as this extension doesn't expose any configuration options. But I've added one with just the <jelly></jelly> tags and it still doesn't appear.

-- Greg

On 05/05/2015 11:46 AM, 'Laurence Bordowitz' via Jenkins Developers wrote:
Did you create a matching config.jelly in the resources? Be sure to check out how Stapler works; this is how the jelly file's fields "staple" to Java fields and methods. All the tags you should need are in the taglibs link on this page:

Architecture - Jenkins - Jenkins Wiki <https://wiki.jenkins-ci.org/display/JENKINS/Architecture>
        
        
        
        
Architecture - Jenkins - Jenkins Wiki <https://wiki.jenkins-ci.org/display/JENKINS/Architecture> Jenkins is primarily a set of Java classes that model the concepts of a build system in a straight-forward fashion (and if you are using Jenkins, you've seen most of those already).

View on wiki.jenkins-ci.org <https://wiki.jenkins-ci.org/display/JENKINS/Architecture>
        
Preview by Yahoo


While we're on the subject; what's the latest state-of-the-art for plugin views? Jelly, groovy, or something else? If so, I'd like this page updated because that's the page that helped me get started.
-- Larry Bordowitz



On Tuesday, May 5, 2015 8:27 AM, Greg Allen <gal...@redhat.com> wrote:


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 jenkinsci-dev+unsubscr...@googlegroups.com. <mailto:unsubscr...@googlegroups.com.> 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.


--
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 jenkinsci-dev+unsubscr...@googlegroups.com <mailto:jenkinsci-dev+unsubscr...@googlegroups.com>. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/1417213378.394294.1430840799097.JavaMail.yahoo%40mail.yahoo.com <https://groups.google.com/d/msgid/jenkinsci-dev/1417213378.394294.1430840799097.JavaMail.yahoo%40mail.yahoo.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

--
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 jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/5548F1B0.9080604%40redhat.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to