Click here to Skip to main content
15,867,568 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am unable to enable CI/CD in a project for Gitlab pages. Normally, I follow the steps below and once I click on CI/CD, it shows the job as running and I wait for it to pass.

The steps I have taken:
1. Created a new repo for my index.html page
2. Copied/pasted my code to index.html
3. Created .gitlab-ci.yml file with the code block
pages:
  stage: deploy
  script:
  - mkdir .public
  - cp -r * .public
  - mv .public public
  artifacts:
    paths:
    - public
  only:
  - master

4. Then, I went to the left menu bar and clicked on "CI/CD", and even after refreshing the page several times, all that is shown is "There are currently no pipelines."

I have tried several solutions but I am still not showing any jobs which have passed so that my index.html file will load.

What I have tried:

I have tried following the Gitlab CI/CD steps to enable CI/CD for my project.
- I made certain that my .gitlab-ci.yml is present in the root directory of the project.
- Went to Menu > Projects > Settings > General> Expanded Visibility, project features, permissions. In the Repo section > made certain CI/CD was turned enabled.
Posted
Updated 3-Nov-21 18:48pm

1 solution

You'd better ask that at the right place:
GitLab Community Forum[^]
where chances are much higher to find someone able to help you there.
There is even a dedicated support portal, if you are on paid subscription.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900