'Create gitlab pipeline freezing

I created gitlab-ci.yml file with code:

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

deploy-job:      # This job runs in the deploy stage.
  stage: deploy  # It only runs when *both* jobs in the test stage complete successfully.
  except: 
      - master
  script:
     - pbifiles=$(git diff --name-only HEAD HEAD~1 -- '***.pbix')
       for pbifile in pbifiles; do
       echo "Publishin $pbifile to BI-Test...."
       python UploadPBITest.py --files $pbifile

But when i push Commit changes, i see on the top message: Checking pipeline status

In pipeline,jobs tabs i don't see nothing



Solution 1:[1]

Check first if one of the troubleshooting causes would apply in your case:

This message is shown when the merge request has no pipeline associated with the latest commit yet.
This might be because:

  • GitLab hasn’t finished creating the pipeline yet.
  • You are using an external CI service and GitLab hasn’t heard back from the service yet.
  • You are not using CI/CD pipelines in your project.
  • You are using CI/CD pipelines in your project, but your configuration prevented a pipeline from running on the source branch for your merge request.
  • The latest pipeline was deleted (this is a known issue).
  • The source branch of the merge request is on a private fork.

The OP adds:

if I delete except, it's work.
But I don't understand how can create pipeline for branches? I have a lot of branches with template name BI-

As in here, you can use CI_COMMIT_BRANCH or CI_MERGE_REQUEST_SOURCE_BRANCH_NAME to test your branch name and allow the job only if said name matches what you want:

rules:
    - if: '$CI_COMMIT_BRANCH =~ /^BI-.*?$/ 

Sources

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

Source: Stack Overflow

Solution Source
Solution 1