Jenkins 什么是f:果冻中的optionalBlock

Jenkins 什么是f:果冻中的optionalBlock,jenkins,jenkins-plugins,jelly,Jenkins,Jenkins Plugins,Jelly,我看到了一个带有f:可选块的jelly文件 <?jelly escape-by-default='true'?> <j:jelly xmlns:j="jelly:core" xmlns:f="/lib/form" xmlns:st="jelly:stapler"> <j:choose> <j:when test="${instance == null}"> <f:entry title="${%

我看到了一个带有f:可选块的jelly文件

<?jelly escape-by-default='true'?>
<j:jelly xmlns:j="jelly:core" xmlns:f="/lib/form" xmlns:st="jelly:stapler">
    <j:choose>
        <j:when test="${instance == null}">
            <f:entry title="${%File}" field="file">
                <input type="file" name="file" size="40" jsonAware="yes"/>
            </f:entry>
        </j:when>
        <j:otherwise>
            <f:invisibleEntry>
                <f:textbox field="fileName"/>
            </f:invisibleEntry>
            <f:invisibleEntry>
                <f:textbox field="secretBytes"/>
            </f:invisibleEntry>
            <f:optionalBlock title="${%upload(instance.fileName)}" inline="true">
                <f:entry title="${%File}" field="file">
                    <input type="file" name="file" size="40" jsonAware="yes"/>
                </f:entry>
            </f:optionalBlock>
        </j:otherwise>
    </j:choose>
    <st:include page="id-and-description" class="${descriptor.clazz}"/>
</j:jelly>


f:可选块在这里做什么,我的意思是它在这里的意义是什么?

Jelly代码在内部转换为简单的HTML和JavaScript代码。
块用于显示复选框。单击此复选框时,该复选框内的字段将显示在UI上。 在您的示例中,文件参数将显示在UI上。 我们可以使用
块的
内联属性和
选中属性