diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/models/ci/pipeline.rb | 4 | ||||
-rw-r--r-- | app/views/projects/pipelines/_info.html.haml | 6 |
2 files changed, 10 insertions, 0 deletions
diff --git a/app/models/ci/pipeline.rb b/app/models/ci/pipeline.rb index 255ae64a3fd..c891cff4632 100644 --- a/app/models/ci/pipeline.rb +++ b/app/models/ci/pipeline.rb @@ -810,6 +810,10 @@ module Ci errors ? errors.full_messages.to_sentence : "" end + def auto_devops_unsupported? + !auto_devops_buildable.nil? && !auto_devops_buildable? + end + private def ci_yaml_from_repo diff --git a/app/views/projects/pipelines/_info.html.haml b/app/views/projects/pipelines/_info.html.haml index 2b56ada8b73..6e226c15970 100644 --- a/app/views/projects/pipelines/_info.html.haml +++ b/app/views/projects/pipelines/_info.html.haml @@ -5,6 +5,12 @@ %pre.commit-description< = preserve(markdown(commit.description, pipeline: :single_line)) +- if @pipeline.auto_devops_unsupported? + .flash-container + .flash-warning + .flash-text + = s_('This pipeline was skipped because this project is not compatible with Auto DevOps. To run Auto DevOps pipelines, ensure your project has a <a href="https://docs.gitlab.com/ee/topics/autodevops/#auto-build-using-a-dockerfile">Dockerfile</a> or <a href="https://docs.gitlab.com/ee/topics/autodevops/#auto-build-using-heroku-buildpacks">matching buildpack</a>.').html_safe + .info-well .well-segment.pipeline-info .icon-container |