I’m using self-hosted (Omnibus) GitLab Community Edition 13.7.3
.gitlab-ci.yml is unedited example from help/ci/quick_start/README:
build-job:
stage: build
script:
- echo "Hello, $GITLAB_USER_LOGIN!"
test-job1:
stage: test
script:
- echo "This job tests something"
test-job2:
stage: test
script:
- echo "This job tests something, but takes more time than test-job1."
- echo "After the echo commands complete, it runs the sleep command for 20 seconds"
- echo "which simulates a test that runs 20 seconds longer than test-job1"
- sleep 20
deploy-prod:
stage: deploy
script:
- echo "This job deploys something from the $CI_COMMIT_BRANCH branch."
Iam using 14.3.6 (ce)
As gitlab-ci I used a default template suggested by the Gitlab UI.
Even I also see the error-message wmdustgv mentioned, Gitlab creates the gitlab-ci.yml. But when I try to open the file in the UI, it forwards to a 500 page.
Thanks. Please share a few screenshots that illustrate the steps you are following to create a CI/CD configuration. Not sure I fully understand it yet.
Maybe related note - 14.3.6 is quite old, 16.3 was released yesterday. An upgrade can rule out potential bugs.
Same problem here, though we’re using JiHu GitLab v16.3.0-jh. For me, http://{domain}/{user}/{repo}/-/ci/editor?branch_name=main works but http://{domain}/{user}/{repo}/-/ci/editor?branch_name=refs%2Fheads%2Fmain does not.
When I click .gitlab-ci.yml in my default branch, it redirects my page to .../-/blob/main/.gitlab-ci.yml?ref_type=heads, and with the ref_type=heads parameter in my url, the pipeline editor button takes me to .../-/ci/editor?branch_name=refs%2Fheads%2Fmain instead of .../-/ci/editor?branch_name=main. I think the pipeline editor cannot understand refs/heads/* format.