Hi, global.jelly applies to global Jenkins configuration (system-wide configuration).
I'm not sure to understand whether you need common configuration project-wide or if it is system-wide. If system-wide, from other build steps/notifiers, look up the descriptor for the buildstep that holds the configuration (MyBuildStepDescriptor) Jenkins.getInstance().getDescriptor(MyBuildStep.class) If project-wide, you'll have to lookup the buildstep itself from the Project. Usually you get access to the Build object, so you'll need something like: build.getProject().getBuilders(), then look up the appropriate instance. HTH, Vincent 2014-02-04 Nicky Ramone <[email protected]>: > Hi > > I'm writing a plugin that consists of 2 or 3 build steps / notifiers. > These build steps have some general configuration in common. > How can I reuse / access that configuration? I added the global.jelly file > in one of the buid step classes but I don't think I can access it from the > other build steps. > > Does anyone know? > > Thanks! > > -- > 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]. > For more options, visit https://groups.google.com/groups/opt_out. > -- 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]. For more options, visit https://groups.google.com/groups/opt_out.
