Skip to content
This repository has been archived by the owner on Apr 13, 2019. It is now read-only.

Commit

Permalink
Merge pull request #29 from ahal/treeherder_tiers
Browse files Browse the repository at this point in the history
Bug 1219311 - Add 'tier' to treeherder job schema, r=garndt
  • Loading branch information
gregarndt committed Oct 29, 2015
2 parents d25025a + be49b20 commit 9c41c41
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/treeherder/job_handler.js
Expand Up @@ -40,6 +40,9 @@ const SCHEMA = Joi.object().keys({
// If the default is not set to ? 'unknown' is used in the UI which will
// trigger that to be displayed when ? is used no extra UI is present.
default('?'),
tier: Joi.number().
description('Treeherder tier').
default(1),
productName: Joi.string().
description('TODO: Figure out what this is for'),

Expand Down Expand Up @@ -172,6 +175,7 @@ function jobFromTask(taskId, task, run) {
if (config.groupName) job.group_name = config.groupName;
if (config.groupSymbol) job.group_symbol = config.groupSymbol;
if (config.productName) job.product_name = config.productName;
if (config.tier) job.tier = config.tier;

// Add link to task-inspector
let inspectorLink = 'https://tools.taskcluster.net/task-inspector/#' +
Expand Down

0 comments on commit 9c41c41

Please sign in to comment.