我创建了一个Jenkins插件。
在这里您可以看到我的插件信息:https://wiki.jenkins.io/display/JENKINS/Reqtify+Plugin
如您所见,我添加了一个名为“ Reqtify:生成报告”的构建步骤。 当我单击此按钮时,将出现一个带有两个下拉列表框“报表模型”和“报表模板”的表单,并且在这些列表框中不加载任何内容。相反,它给了我下面的错误:
来自hudson-behavior.js:2995的意外的SyntaxError:意外令牌)
这是我的config.jelly文件,用于配置这些列表框:
<?jelly escape-by-default='true'?>
<j:jelly xmlns:j="jelly:core" xmlns:html="jelly:html" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form" xmlns:c="/lib/credentials">
<st:bind var="backend" value="${descriptor}"/>
<f:invisibleEntry>
<f:textbox field="lang" value="${%eng}" default="${%eng}"/>
</f:invisibleEntry>
<f:entry title="${%Name of report}" field="nameReport" help="/plugin/reqtify/help/ReqtifyGenerateReport/help-name.html">
<f:textbox default="Report"/>
</f:entry>
<f:entry title="${%Model of report}" field="modelReport" help="/plugin/reqtify/help/ReqtifyGenerateReport/help-model.html">
<f:select />
</f:entry>
<f:entry title="${%Template of report}" field="templateReport" help="/plugin/reqtify/help/ReqtifyGenerateReport/help-template.html">
<f:select />
</f:entry>
<f:entry field="reqtifyError">
<div id="reqtifyErrorDiv"><span style="color:red;" id="reqtifyErrorSpan"></span></div>
</f:entry>
<script>
backend.getReqtifyError(function(reqtifyError){
if(reqtifyError === undefined || reqtifyError === null) {
document.getElementById('reqtifyErrorDiv').style.display = 'none';
} else {
document.getElementById('reqtifyErrorDiv').style.display = 'block';
document.getElementById('reqtifyErrorSpan').innerHTML = reqtifyError.responseJSON;
}
});
</script>
</j:jelly>
你能告诉我我要去哪里吗?