Put debug options in debug_otions

This depends on https://github.com/travis-ci/travis-migrations/pull/7
This commit is contained in:
Hiro Asari 2016-03-04 09:04:58 -10:00
parent 05e860dd35
commit ba142b84c7
2 changed files with 7 additions and 8 deletions

View File

@ -9,5 +9,6 @@ module Travis::API::V3
belongs_to :build, autosave: true, foreign_key: 'source_id'
belongs_to :owner, polymorphic: true
serialize :config
serialize :debug_options
end
end

View File

@ -10,7 +10,7 @@ module Travis::API::V3
raise WrongCredentials unless Travis.config.debug_tools_enabled or Travis::Features.active?(:debug_tools, job.repository)
access_control.permissions(job).debug!
job.config.merge! debug_data
job.debug_options = debug_data
job.save!
query.restart(access_control.user)
@ -19,13 +19,11 @@ module Travis::API::V3
def debug_data
{
debug: {
stage: 'before_install',
previous_state: job.state,
created_by: access_control.user.login,
quiet: params["quiet"] || false
}
}
end
end
end