'fatal: couldn't find remote ref refs/pipelines/36

I setup fresh gitlab docker , then set up a runner docker with docer executer hen I added simple project to gitlab just a hello world then I create a ci file as below:

stages:          # List of stages for jobs, and their order of execution
  - build
  - test
  - deploy

build-job:       # This job runs in the build stage, which runs first.
  stage: build
  script:
    - echo "Compiling the code..."
    - echo "Compile complete."

unit-test-job:   # This job runs in the test stage.
  stage: test    # It only starts when the job in the build stage completes successfully.
  script:
    - echo "Running unit tests... This will take about 60 seconds."
    - echo "Code coverage is 90%"

lint-test-job:   # This job also runs in the test stage.
  stage: test    # It can run at the same time as unit-test-job (in parallel).
  script:
    - echo "Linting code... This will take about 10 seconds."
    - echo "No lint issues found."

deploy-job:      # This job runs in the deploy stage.
  stage: deploy  # It only runs when *both* jobs in the test stage complete successfully.
  script:
    - echo "Deploying application..."
    - echo "Application successfully deployed."

then in pipleline I get this output:

Running with gitlab-runner 14.10.1 (f761588f)
  on ok 7wqYt3LN
Preparing the "docker" executor 00:49
Using Docker executor with image ruby:2.7 ...
Pulling docker image ruby:2.7 ...
Using docker image sha256:f9ff7b1916e8621692c63166fe723ba1de03eba2aaff34e7b8180ee61a17d77b for ruby:2.7 with digest ruby@sha256:396bedd7068efb54df5bf0c62340b189c154e81afd3070c05fa2411b4eaa8c59 ...
Preparing environment 00:24
Running on runner-7wqyt3ln-project-7-concurrent-0 via eya...
Getting source from Git repository 00:43
Fetching changes with git depth set to 20...
Reinitialized existing Git repository in /builds/gitlab-instance-0ee6bec1/test/.git/
fatal: couldn't find remote ref refs/pipelines/36
ERROR: Job failed: exit code 1

I searched error but all asnwers are about projects which have branches, but I dont have any branch, just a simple hello world project.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source