Build in Gitlab does not change from "Pending"

Asked

Viewed 112 times

0

I recently deleted a repository in Gitlab (I use their own server) and created a new one, but when I do commits and pushs appears a "build: pending" in the commit, alerting:

.gitlab-ci.yml not found in this commit

None of my commits are going through (green light). I’ve tried creating a new file .gitlab-ci.yml, but I’m not getting it right. I’m starting in git now.

How can I fix this?

  • You need to create this file at the root of the project and insert the build rules into it, otherwise it will not work. And Voce also has to have some Runner configured to run this build.

1 answer

1

If what you want is to use Gitlab’s Continuous Integration (CI) system, you will need to have one .gitlab-ci.yml valid in your branch master; otherwise the above mentioned error will always occur.

But, if you don’t want to use CI, go to the project settings (Project Settings) and uncheck the option Builds.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.