Browse Source

fixed 节点增加属性,节点名称带上id

pull/347/head
xxq250 1 year ago
parent
commit
848afa3ec4
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      app/views/api/v1/projects/pipelines/build_pipeline.yaml.erb

+ 2
- 2
app/views/api/v1/projects/pipelines/build_pipeline.yaml.erb View File

@@ -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…
Cancel
Save