flash[:success]="A new Auto DevOps pipeline has been created, go to <a href=\"#{project_pipelines_path(@project)}\">Pipelines page</a> for details".html_safe
end
end
redirect_toproject_settings_ci_cd_path(@project)
redirect_toproject_settings_ci_cd_path(@project)
else
else
...
@@ -28,6 +21,18 @@ class Projects::PipelinesSettingsController < Projects::ApplicationController
...
@@ -28,6 +21,18 @@ class Projects::PipelinesSettingsController < Projects::ApplicationController
private
private
defrun_autodevops_pipeline(service)
returnunlessservice.run_auto_devops_pipeline?
if@project.empty_repo?
flash[:warning]="This repository is currently empty. A new Auto DevOps pipeline will be created after a new file has been pushed to a branch."
flash[:success]="A new Auto DevOps pipeline has been created, go to <a href=\"#{project_pipelines_path(@project)}\">Pipelines page</a> for details".html_safe