Skip to content
Snippets Groups Projects

Add auto-cancel for pending pipelines on branch, if they are not HEAD

11 files
+ 159
84
Compare changes
  • Side-by-side
  • Inline
Files
11
  • fix changelog MR reference
    
    add non-HEAD builds finder and add `created` pipelines to scope
    
    add spec for auto-cancel non-HEAD pipelines and refactor create_pipeline_service_spec
    
    more refactoring for spec
    
    adds option for auto-cancel into CI/CD settings
    
    fix spec to new configuration
    
    fix rubocop
    
    fix schema.rb
    
    fix schema.rb
    
    replace Gitlab 9.0 with 9.1 in doc
    
    change wording on pipeline settings
    
    added auto_canceled_by field as identifier of autocancel subject
    
    remove unnecessary index
    
    replace service with retry_lock
@@ -23,7 +23,7 @@ def create_params
def update_params
params.require(:project).permit(
:runners_token, :builds_enabled, :build_allow_git_fetch, :build_timeout_in_minutes, :build_coverage_regex,
:public_builds
:public_builds, :auto_cancel_pending_pipelines
)
end
end
Loading