From ef045bdcb8f6fdc11d147a2f305c1f9b40db1019 Mon Sep 17 00:00:00 2001 From: Lisa Passing Date: Tue, 23 Jun 2015 17:14:33 +0200 Subject: [PATCH] detect build.linux in jobs.queue and display notice --- app/models/job.coffee | 5 +++++ app/templates/jobs/pre.hbs | 3 +++ 2 files changed, 8 insertions(+) diff --git a/app/models/job.coffee b/app/models/job.coffee index 37f08934..151eda76 100644 --- a/app/models/job.coffee +++ b/app/models/job.coffee @@ -143,4 +143,9 @@ Job = Model.extend DurationCalculations, "#{@get('repo.slug')} ##{@get('number')}" ).property() + isLegacyInfrastructure: (-> + if @get('queue') == 'builds.linux' + true + ).property('queue') + `export default Job` diff --git a/app/templates/jobs/pre.hbs b/app/templates/jobs/pre.hbs index e60f99c4..3d48169b 100644 --- a/app/templates/jobs/pre.hbs +++ b/app/templates/jobs/pre.hbs @@ -4,6 +4,9 @@ {{#if view.job.notStarted}}
Hang tight, the log cannot be shown until the build has started.
{{/if}} + {{#if view.job.isLegacyInfrastructure}} +

This job runs on our legacy infrastructure. Read more about upgrading in our docs

+ {{/if}}
{{#if view.canRemoveLog}}