diff options
-rw-r--r-- | db/migrate/20150601043227_migrate_jobs_to_yaml.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/db/migrate/20150601043227_migrate_jobs_to_yaml.rb b/db/migrate/20150601043227_migrate_jobs_to_yaml.rb index 32338dc..e7cdf2b 100644 --- a/db/migrate/20150601043227_migrate_jobs_to_yaml.rb +++ b/db/migrate/20150601043227_migrate_jobs_to_yaml.rb @@ -26,7 +26,7 @@ class MigrateJobsToYaml < ActiveRecord::Migration select_all(sql).each do |job| config[job["name"].to_s] = { script: job["commands"] && job["commands"].split("\n").map(&:strip), - tags: job["tags"].split(",").map(&:strip) + tags: job["tags"] && job["tags"].split(",").map(&:strip) } except = build_except_param(parse_boolean_value(job["build_branches"]), parse_boolean_value(job["build_tags"])) @@ -41,7 +41,7 @@ class MigrateJobsToYaml < ActiveRecord::Migration config[job["name"].to_s] = { script: job["commands"] && job["commands"].split("\n").map(&:strip), type: "deploy", - tags: job["tags"].split(",").map(&:strip) + tags: job["tags"] && job["tags"].split(",").map(&:strip) } except = build_except_param(parse_boolean_value(job["build_branches"]), parse_boolean_value(job["build_tags"])) |