Commit d58353db authored by Marcel Amirault's avatar Marcel Amirault

Merge branch 'john_long-add-validate-yml-to-advanced-troubleshooting' into 'master'

Add validate yml to advanced troubleshooting

Closes gitlab-com/support/docs#66

See merge request gitlab-org/gitlab!30074
parents 7784dbf9 080ed7fe
...@@ -603,6 +603,14 @@ m = project.merge_requests.find_by(iid: ) ...@@ -603,6 +603,14 @@ m = project.merge_requests.find_by(iid: )
m.project.try(:ci_service) 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 ### Disable AutoDevOps on Existing Projects
```ruby ```ruby
......
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