简体   繁体   English

Gitlab 带标签的 CI 转轮

[英]Gitlab CI Runner with tag

I am trying now 100 times an dont get it, maybe someone can help me out我现在试了 100 次还是不明白,也许有人可以帮助我

I have a CI Job in Gitlab which should run on a specific runner that is installed on an OSx System but the job doesnt appaer in the gitlab pipeline ui when I start the pipeline.我在 Gitlab 中有一个 CI 作业,它应该在安装在 OSx 系统上的特定运行器上运行,但是当我启动管道时,该作业不会出现在 gitlab 管道 ui 中。

Here My gitlab-ci.yml:这是我的 gitlab-ci.yml:

app-ios:
  stage: build
  script:
  - echo 'test'
  tags:
    - apple
    - shell
  only:
    - deploy/app

I tried register again the runner I tried register with only one tag我试着再次注册跑步者我试过只用一个标签注册

When adding tags to your CI YAML file , you want to make sure that your runner has the corresponding tags.标签添加到 CI YAML 文件时,您要确保您的跑步者具有相应的标签。

From the docs,从文档中,

a runner must be assigned every tag listed in the job.必须为跑步者分配工作中列出的每个标签。

So in your case, you want to make sure that the registered runner also has both the tags apple and shell .所以在你的情况下,你要确保注册的跑步者也有标签appleshell Obviously, the runner can have more tags, but it needs to have at least those two.显然,跑步者可以有更多标签,但至少需要有这两个标签。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM