CI - Pipeline with no jobs is failing

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

  • Close this issue

I have, say, two jobs script1 and script2 in .gitlab-ci.yml. script1 runs whenever there is a change in the directory script1; likewise script2.

Take a look at the file:

script1:
    only:
        refs:
            - merge_requests
            - master          
        changes:
            - script1/**/*
    script: echo 'script1 done'

script2:
    only:
        refs:
            - merge_requests
            - master
        changes:
            - script2/**/*
    script: echo 'script2 done'

The job(s) is/are succeeding as expected for a change in script1, a change in script2, and change in both the directories. But when there is no change in either directory, the pipeline is failing.

In the overview, Gitlab gives the message

Could not retrieve the pipeline status. For troubleshooting steps, read the documentation.

Overview SS

In the Pipelines tab, I have the option Run pipeline, clicking on which gives the error

An error occurred while trying to run a new pipeline for this Merge Request.

Pipelines SS

Edited Aug 28, 2025 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading