From 848afa3ec4008afab35bb7aaceae22ee1b742c0c Mon Sep 17 00:00:00 2001 From: xxq250 Date: Tue, 10 Dec 2024 09:36:58 +0800 Subject: [PATCH] =?UTF-8?q?fixed=20=E8=8A=82=E7=82=B9=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E5=B1=9E=E6=80=A7=EF=BC=8C=E8=8A=82=E7=82=B9=E5=90=8D=E7=A7=B0?= =?UTF-8?q?=E5=B8=A6=E4=B8=8Aid?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/api/v1/projects/pipelines/build_pipeline.yaml.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/api/v1/projects/pipelines/build_pipeline.yaml.erb b/app/views/api/v1/projects/pipelines/build_pipeline.yaml.erb index ffd8ddf00..48fe976af 100644 --- a/app/views/api/v1/projects/pipelines/build_pipeline.yaml.erb +++ b/app/views/api/v1/projects/pipelines/build_pipeline.yaml.erb @@ -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 %>