本文整理汇总了Java中jenkins.tasks.SimpleBuildStep类的典型用法代码示例。如果您正苦于以下问题:Java SimpleBuildStep类的具体用法?Java SimpleBuildStep怎么用?Java SimpleBuildStep使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
SimpleBuildStep类属于jenkins.tasks包,在下文中一共展示了SimpleBuildStep类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: populate
import jenkins.tasks.SimpleBuildStep; //导入依赖的package包/类
private <T extends Describable<T>,D extends Descriptor<T>> void populate(List<Descriptor<?>> r, Class<T> c) {
for (Descriptor<?> d : Jenkins.getActiveInstance().getDescriptorList(c)) {
if (SimpleBuildStep.class.isAssignableFrom(d.clazz)) {
r.add(d);
}
}
}
示例2: getClassList
import jenkins.tasks.SimpleBuildStep; //导入依赖的package包/类
private <T extends Describable<T>, D extends Descriptor<T>> List<Descriptor<?>> getClassList(Class<T> c) {
ArrayList<Descriptor<?>> r = new ArrayList<Descriptor<?>>();
if (jenkins == null) {
return new ArrayList<Descriptor<?>>();
}
for (Descriptor<?> d : jenkins.getDescriptorList(c)) {
if (SimpleBuildStep.class.isAssignableFrom(d.clazz)) {
r.add(d);
}
}
return r;
}
示例3: getPlugin
import jenkins.tasks.SimpleBuildStep; //导入依赖的package包/类
private SimpleBuildStep getPlugin() {
try {
return DescribableHelper.instantiate(pluginDescriptor.clazz, (Map<String, ?>) options);
} catch (Exception e) {
throw new RuntimeException(e);
}
}
示例4: CoreStep
import jenkins.tasks.SimpleBuildStep; //导入依赖的package包/类
@DataBoundConstructor public CoreStep(SimpleBuildStep delegate) {
this.delegate = delegate;
}
示例5: Execution
import jenkins.tasks.SimpleBuildStep; //导入依赖的package包/类
Execution(SimpleBuildStep delegate, StepContext context) {
super(context);
this.delegate = delegate;
}
示例6: GenericSimpleBuildStepPlugin
import jenkins.tasks.SimpleBuildStep; //导入依赖的package包/类
public GenericSimpleBuildStepPlugin(Descriptor<?> pluginDescriptor, Object options) {
super("");
this.pluginDescriptor = (Descriptor<? extends SimpleBuildStep>) pluginDescriptor;
this.options = options;
}