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}}