<p>How to use tags to use a specific gitlab-runner?
I wrote tag in .gitlab-ci.yml:</p>
<pre><code>appBuild:
  stage: build
  tags:
    - android
</code></pre>
<p>I wrote &quot;android&quot; tag in runner config.
But job is in pending state and is waiting to be picked by a runner.
What is wrong?</p>

CC BY-SA 4.0
2021-03-11T10:06:14.230Z
Do you have a runner defined with the tag android declared at its registration ?
Tensibai
CC BY-SA 4.0
2021-03-11T10:15:16.757Z
@Tensibai Yes, i declared it with tag Android in registration
Epic555
CC BY-SA 4.0
2021-03-11T15:51:24.773Z
Check your tags, check the settings => CI/CD of your project to be sure the runner is visible and check your runner logs, maybe it can't start properly due to something on your runner machine and is thus considered dead on gitlab point of view.
Tensibai
CC BY-SA 4.0
2021-03-11T18:00:43.827Z
As long as you have a runner with the "android" tag, and your project has access to it, there is no reason your runner shouldn't pick up the job.
Preston Martin
CC BY-SA 4.0
2021-03-12T06:13:22.137Z
runner is visible in gitlab
Epic555
<gitlab-ci-runner>
How to use tags to use a specific gitlab-runner?
Epic555
# How to use tags to use a specific gitlab-runner?

(Asked by: username_0 on 2021-03-11)

How to use tags to use a specific gitlab-runner?
I wrote tag in .gitlab-ci.yml:
appBuild:
  stage: build
  tags:
    - android

I wrote "android" tag in runner config.
But job is in pending state and is waiting to be picked by a runner.
What is wrong?

**Tags:** gitlab-ci-runner

> **Comments:**
> **username_1**: Do you have a runner defined with the tag android declared at its registration ?  
> **username_0**: @username_1 Yes, i declared it with tag Android in registration  
> **username_1**: Check your tags, check the settings => CI/CD of your project to be sure the runner is visible and check your runner logs, maybe it can't start properly due to something on your runner machine and is thus considered dead on gitlab point of view.  
> **username_2**: As long as you have a runner with the "android" tag, and your project has access to it, there is no reason your runner shouldn't pick up the job.  
> **username_0**: runner is visible in gitlab  

---

## 0 answers

