How do I disable Auto DevOps in GitLab, and why did it run?
Short answer
Auto DevOps is GitLab's ready-made pipeline: it runs on the default branch of a project with no .gitlab-ci.yml when Default to Auto DevOps pipeline is on for the project, its group or the whole instance, and the code has a Dockerfile or a matching buildpack. To turn it off for one project, go to Settings > CI/CD > Auto DevOps, clear Default to Auto DevOps pipeline and select Save changes, with the Maintainer or Owner role; group Owners and instance administrators have the same checkbox at their level. Adding your own .gitlab-ci.yml also stops it, because your configuration takes precedence.
You pushed to a project that has no .gitlab-ci.yml, and GitLab ran a pipeline anyway: build, test, code_quality, perhaps secret_detection, and then a red cross on the default branch. That pipeline is Auto DevOps. Here’s why it ran, how to switch it off at each level, and how to keep it with fewer jobs, with GitLab 19.6.
What is Auto DevOps, and why did it run?
Auto DevOps is a set of pre-configured CI/CD pipelines that GitLab maintains, so a project can build, test and scan without writing any CI configuration. GitLab runs it when all three of these are true:
- The project has no CI/CD configuration file. If
.gitlab-ci.ymlis present, your configuration takes precedence over the Auto DevOps pipeline. - The setting is on for the project, for its group (subgroups and projects inherit it), or for every project on the instance, which only an administrator can set.
- GitLab can build the code. Auto DevOps runs pipelines automatically only if a
Dockerfileor a matching buildpack exists.
GitLab triggers the Auto DevOps pipeline on the default branch. The jobs it can add come from four stages:
| Stage | What Auto DevOps adds |
|---|---|
| Build | Auto build, auto dependency scanning |
| Test | Auto test, browser performance testing, code quality, container scanning |
| Deploy | Auto review apps, auto deploy |
| Secure | DAST, SAST, secret detection |
Without a deployment target prepared for it, Auto DevOps builds and tests the app but can’t deploy it.
How do I disable Auto DevOps for one project?
You need the Maintainer or Owner role in the project.
- Open the project and select Settings > CI/CD.
- Expand Auto DevOps.
- Clear the Default to Auto DevOps pipeline checkbox.
- Select Save changes.
From then on, a push to the default branch doesn’t start an Auto DevOps pipeline. Pipelines that already ran stay in Build > Pipelines; if one is still running, cancel it.
How do I disable it for a group or the whole instance?
For a group, you need the Owner role. Open the group, select Settings > CI/CD, expand Auto DevOps, clear Default to Auto DevOps pipeline and select Save changes. Subgroups and projects inherit the group’s setting, and a single project can still turn Auto DevOps off for itself while its group has it on.
For a GitLab Self-Managed instance, an administrator selects Admin, then Settings > CI/CD, expands Continuous Integration and Deployment and clears Default to Auto DevOps pipeline for all projects. While that box is selected, Auto DevOps runs for every project without a .gitlab-ci.yml, existing and new.
On GitLab.com you don’t have an instance setting to change, so turn it off on the group or the project.
| Level | Where | Who can change it | Applies to |
|---|---|---|---|
| Project | Settings > CI/CD > Auto DevOps | Maintainer or Owner | That project |
| Group | Group Settings > CI/CD > Auto DevOps | Group Owner | Subgroups and projects that inherit it |
| Instance | Admin > Settings > CI/CD > Continuous Integration and Deployment | Administrator | Every project without a .gitlab-ci.yml |
Why did Auto DevOps switch itself off?
Sometimes the opposite happens: Auto DevOps was on, and now it isn’t. GitLab’s troubleshooting docs list three reasons it gets disabled for a project automatically:
- The setting is on only at the group or instance level, not in the project itself.
- The project has no successful Auto DevOps pipeline.
- A recent Auto DevOps pipeline failed.
So an inherited default tends to turn itself off after the first failure in a project that was never meant for it, which is often what you want. If you do rely on Auto DevOps, select Default to Auto DevOps pipeline in the project’s own settings, then fix the errors that broke the pipeline so it runs again.
How do I stop every pipeline, not only Auto DevOps?
- Add your own
.gitlab-ci.yml. A project with its own configuration doesn’t get the Auto DevOps pipeline, because your configuration takes precedence. If GitLab then refuses the file, see GitLab CI “configuration is invalid”. - Turn off CI/CD for the project. Go to Settings > General, expand Visibility, project features, permissions, turn off CI/CD in the Repository section and select Save changes. The Build menu, Settings > CI/CD and the
/pipelinesand/jobspages disappear. Existing pipelines and jobs are hidden, not deleted, and come back if you turn CI/CD on again. - Skip a single push. If you only want to push one change without a pipeline, see how to skip a GitLab CI pipeline.
How do I keep Auto DevOps but drop a job?
Add job-skipping CI/CD variables to the project or group. Watch the value: the first group of variables works when it exists at all, so setting TEST_DISABLED to false still skips the tests.
| Variable | Skips the job when | Job(s) not created |
|---|---|---|
BUILD_DISABLED |
it exists, any value | build, build_artifact |
TEST_DISABLED |
it exists, any value | test |
REVIEW_DISABLED |
it exists, any value | review, review:stop, stop_review |
BROWSER_PERFORMANCE_DISABLED |
it exists, any value | browser_performance |
CODE_QUALITY_DISABLED |
it’s "true" |
code_quality |
SAST_DISABLED |
it’s "true" |
the *-sast jobs, such as semgrep-sast |
SECRET_DETECTION_DISABLED |
it’s "true" |
secret_detection, secret_detection_default_branch |
DEPENDENCY_SCANNING_DISABLED |
it’s "true" |
dependency_scanning and the gemnasium-* jobs |
CONTAINER_SCANNING_DISABLED |
it’s "true" |
container_scanning |
DAST_DISABLED |
it’s "true" |
dast, dast_environment_deploy, stop_dast_environment |
To take full control instead, write your own .gitlab-ci.yml that includes the Auto DevOps template, and add or override jobs below it:
include:
- template: Auto-DevOps.gitlab-ci.yml
variables:
TEST_DISABLED: "1"
CODE_QUALITY_DISABLED: "true"
Your changes are merged with the template. When you override one of its jobs, use rules, not only or except: the template’s jobs use rules, and a job that ends up with both fails with an error that only can’t be used with rules.
Checklist: a pipeline you didn’t ask for
- Open Build > Pipelines and check the pipeline: on the default branch, with Auto DevOps jobs such as
build,testandcode_quality, and no.gitlab-ci.ymlin the repository. - In the project, open Settings > CI/CD > Auto DevOps and clear Default to Auto DevOps pipeline.
- If every project in a group does this, clear the same box on the group, as its Owner.
- On GitLab Self-Managed, ask an administrator whether Default to Auto DevOps pipeline for all projects is selected.
- If the project should never run pipelines, turn off CI/CD under Settings > General.
- If you want Auto DevOps with fewer jobs, set the job-skipping variables instead.
On your phone
A surprise pipeline is easy to spot away from your desk: MergeBell lists each project’s pipelines with failed jobs highlighted and the tail of each job log, and you can cancel or retry a pipeline from there on the free tier. The Auto DevOps checkbox itself is a project setting, so you change it in GitLab on the web. See how to retry a failed GitLab pipeline for the other half of the story.
Frequently asked questions
Does Auto DevOps run if my project has a .gitlab-ci.yml?
No. When a project has its own CI/CD configuration file, that configuration takes precedence over the Auto DevOps pipeline. If your .gitlab-ci.yml includes the Auto-DevOps.gitlab-ci.yml template, your jobs and overrides are merged with it instead.
Why did GitLab disable Auto DevOps on my project by itself?
GitLab's troubleshooting docs list three reasons: the setting is on only at the group or instance level and not in the project itself, the project has no successful Auto DevOps pipeline, or a recent Auto DevOps pipeline failed. To keep it on, select Default to Auto DevOps pipeline in the project's own Settings > CI/CD and fix the errors that broke the pipeline.
Who can turn Auto DevOps off?
A Maintainer or Owner can turn it off for a project, a group Owner for a group and everything that inherits from it, and an administrator for every project on a GitLab Self-Managed instance, with Default to Auto DevOps pipeline for all projects in Admin > Settings > CI/CD.
How do I stop all pipelines in a GitLab project?
Go to Settings > General, expand Visibility, project features, permissions, turn off CI/CD in the Repository section and select Save changes. Existing pipelines and jobs are hidden, not deleted, and the Build menu disappears until you turn it back on.
Can I keep Auto DevOps but skip the tests or SAST?
Yes. Add job-skipping CI/CD variables: TEST_DISABLED or BUILD_DISABLED skip their jobs when the variable exists at all, and SAST_DISABLED, CODE_QUALITY_DISABLED, SECRET_DETECTION_DISABLED and the other scanner variables skip theirs when set to true.
Sources
- GitLab docs — Auto DevOps (enable or disable per project and per group)
- GitLab docs — Troubleshooting Auto DevOps
- GitLab docs — Auto DevOps CI/CD variables (job-skipping variables)
- GitLab docs — Customize Auto DevOps
- GitLab docs — Continuous integration and deployment admin settings
- GitLab docs — Customize pipeline configuration (turn off CI/CD)
Checked against these pages on 19 November 2026. GitLab changes quickly — if something here no longer matches, tell us and we will fix it.
Do this from your phone with MergeBell
Free for the whole review loop: the To-Do inbox, diffs and line comments, approve and merge, pipelines with retry, and push alerts for your To-Dos. Works with gitlab.com and self-managed GitLab 16.0+.
Get MergeBell for iPhoneGet MergeBell for Android
On the App Store for iOS 26 or later and on Google Play for Android 12 or later. An independent app, not affiliated with GitLab Inc.