提交 2309e7f6 编写于 作者: K kohsuke

implemented label support. Slaves can be grouped into labels and jobs can be tied to labels.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@3343 71c3de6d-444a-0410-be80-ed276b4c234a
上级 1a7d6ef5
......@@ -22,16 +22,14 @@
</j:if>
<!-- master/slave -->
<j:set var="slaves" value="${app.slaves}" />
<j:if test="${!empty(slaves)}">
<f:optionalBlock name="hasSlaveAffinity" title="Tie this project to a node" checked="${it.assignedNode!=null}"
<j:if test="${!empty(app.slaves)}">
<f:optionalBlock name="hasSlaveAffinity" title="Tie this project to node" checked="${it.assignedLabel!=null}"
help="/help/project-config/slave.html">
<f:entry title="Node">
<select class="setting-input" name="slave">
<option>(This machine)</option>
<j:forEach var="s" items="${slaves}">
<f:option selected="${s==it.assignedNode}" value="${s.nodeName}"
>${s.nodeName} <j:if test="${!empty(s.nodeDescription)}">(${s.nodeDescription})</j:if></f:option>
<j:forEach var="s" items="${app.labels}">
<f:option selected="${s==it.assignedLabel}" value="${s.name}"
>${s.name} <j:if test="${!empty(s.description)}">(${s.description})</j:if></f:option>
</j:forEach>
</select>
</f:entry>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册