我有一个分叉的插件,现在只能在“自由式构建或通用构建”中使用。我希望该插件也可用于 Maven 构建配置,但对于扩展点是什么以及如何进行更改感到困惑。在插件配置器 java 类中,我看到以下内容:
@Override
public boolean configure(StaplerRequest req, JSONObject json) throws FormException {
req.bindParameters(this, "generic");
//req.bindParameters(this , "maven" );
save();
return true;
}
正如您所看到的 req.bindParamter 现在以 'generic' 为目标,在下面添加 maven 并没有帮助。那么到底什么是 bindParameter 以及我应该寻找什么其他方法来解决我的查询?