fixed 节点增加属性,节点名称带上id
This commit is contained in:
parent
28f3395b05
commit
848afa3ec4
|
@ -38,12 +38,12 @@ on:
|
|||
jobs:
|
||||
<%@job_nodes.each_with_index do |job,index| %>
|
||||
job<%=index %>:
|
||||
name: "<%=job.label || job.name %>"
|
||||
name: "<%=job.label || job.name %>[<%=job.node_id %>]"
|
||||
# 运行环境,这里就是上面定义的多个 os
|
||||
runs-on: 'ubuntu-latest'
|
||||
steps:
|
||||
<%job.sub_nodes.each do |node| %>
|
||||
- name: <%=node.label || node.name %>
|
||||
- name: "<%=node.label || node.name %>[<%=job.node_id %>]"
|
||||
<% if node.name !="shell" %>
|
||||
uses: <%=node.full_name %>
|
||||
<% end %>
|
||||
|
|
Loading…
Reference in New Issue