diff options
Diffstat (limited to 'app/serializers/job_entity.rb')
-rw-r--r-- | app/serializers/job_entity.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/serializers/job_entity.rb b/app/serializers/job_entity.rb index d0099ae77f2..d05b500b140 100644 --- a/app/serializers/job_entity.rb +++ b/app/serializers/job_entity.rb @@ -9,7 +9,8 @@ class JobEntity < Grape::Entity expose :started?, as: :started expose :archived?, as: :archived - expose :build_path do |build| + # bridge jobs don't have build detail pages + expose :build_path, if: ->(build) { !build.is_a?(Ci::Bridge) } do |build| build_path(build) end |