Skip to content
Snippets Groups Projects
Commit b4ae9812 authored by Kamil Trzcińśki's avatar Kamil Trzcińśki
Browse files

Fix plugins

parent 4baa072e
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -99,6 +99,7 @@ module Ci
new_build.stage = build.stage
new_build.stage_idx = build.stage_idx
new_build.trigger_request = build.trigger_request
new_build.plugin = build.plugin
new_build.save
new_build
end
Loading
Loading
@@ -122,7 +123,7 @@ module Ci
end
 
def retryable?
project.builds_enabled? && commands.present?
project.builds_enabled? && (commands.present? || plugin.present?)
end
 
def retried?
Loading
Loading
Loading
Loading
@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
 
ActiveRecord::Schema.define(version: 20160407120251) do
ActiveRecord::Schema.define(version: 20160407151602) do
 
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
Loading
Loading
@@ -141,6 +141,7 @@ ActiveRecord::Schema.define(version: 20160407120251) do
t.text "artifacts_metadata"
t.integer "erased_by_id"
t.datetime "erased_at"
t.string "plugin"
end
 
add_index "ci_builds", ["commit_id", "stage_idx", "created_at"], name: "index_ci_builds_on_commit_id_and_stage_idx_and_created_at", using: :btree
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment