Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

This job is stuck, because the project doesn't have any runners online assigned to it. Go to Runners page

People also ask

How do I start the GitLab runner?

You should use user-mode if you are sure this is the mode you want to work with. Otherwise, prefix your command with sudo : $ sudo gitlab-runner run INFO[0000] Starting multi-runner from /etc/gitlab-runner/config.


The job is stuck because your runners have tags but your jobs don't. Follow these 4 steps to enable your runner to run without tags:

enter image description here enter image description here

Or set tags to your jobs. For more info: Configuration of your jobs with .gitlab-ci.yml - Tags


Make sure you are using the correct tag i.e. whatever present corresponding to the configured runner for your project.

In your case it would be like :

maven-build:
 image: maven:3-jdk-8
 stage: build
 tags: my project ci-cd
 script: "mvn package -B"
 artifacts:
 paths:
  - target/*.jar

It was quite simple on my side, I just run gitlab-runner run on my computer


Also you can tag your jobs using the following syntax in file .gitlab-ci.yml:

stages:
  - check
  - build
  - test
  - analyze
  - package
  - release
  - deploy
nohttp:
  stage: check
  tags:
    - dev

Besides not to forget to add tag "dev" to your project's specefic/shared runner.