Commit 080ed7fe authored by John Long's avatar John Long

Move validating yml to ci section

parent e4463f4b
......@@ -603,6 +603,14 @@ m = project.merge_requests.find_by(iid: )
m.project.try(:ci_service)
```
### Validate the `.gitlab-ci.yml`
```ruby
project = Project.find_by_full_path 'group/project'
content = project.repository.gitlab_ci_yml_for(project.repository.root_ref_sha)
Gitlab::Ci::YamlProcessor.validation_message(content, user: User.first)
```
### Disable AutoDevOps on Existing Projects
```ruby
......@@ -887,13 +895,3 @@ project = Project.find_by_full_path('<group/project>')
Geo::RepositorySyncService.new(project).execute
```
## Advanced Troubleshooting
### Validate the `.gitlab-ci.yml`
```ruby
project = Project.find_by_full_path 'group/project'
content = project.repository.gitlab_ci_yml_for(project.repository.root_ref_sha)
Gitlab::Ci::YamlProcessor.validation_message(content, user: User.first)
```
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment