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

|   |
|   |   |   |   |   |
| Architecture - Jenkins - Jenkins WikiJenkins 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 | 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 <[email protected]> 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 [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.


  

-- 
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/1417213378.394294.1430840799097.JavaMail.yahoo%40mail.yahoo.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to