From d840cc0cc407fa99fb802c17e6c96ed75e5f4a63 Mon Sep 17 00:00:00 2001 From: Paul Herbosch Date: Wed, 23 Nov 2022 14:59:59 +0100 Subject: [PATCH] [OPS-958] Include Build-Url in build_artifact rake task --- lib/tasks/projectaanvraag-api/build_artifact.rake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/tasks/projectaanvraag-api/build_artifact.rake b/lib/tasks/projectaanvraag-api/build_artifact.rake index c9b73de3..7903bec9 100644 --- a/lib/tasks/projectaanvraag-api/build_artifact.rake +++ b/lib/tasks/projectaanvraag-api/build_artifact.rake @@ -11,6 +11,7 @@ namespace 'projectaanvraag-api' do license = 'Apache-2.0' description = 'Projectaanvraag Api' source = 'https://github.com/cultuurnet/projectaanvraag-silex/' + build_url = ENV['JOB_DISPLAY_URL'].nil? ? "" : ENV['JOB_DISPLAY_URL'] FileUtils.mkdir_p('pkg') @@ -25,6 +26,7 @@ namespace 'projectaanvraag-api' do --license '#{license}' -m '#{maintainer}' \ --deb-field 'Pipeline-Version: #{calver_version}' \ --deb-field 'Git-Ref: #{git_short_ref}' \ + --deb-field 'Build-Url: #{build_url}' \ ." ) or exit 1 end