Skip to content

Commit 89fa8d4

Browse files
committed
Ensure package download url is based on CI tag variable
Rather than whether the git checkout is on a tag This fixes an issue where we use the wrong job name on a branch pipeline when the commit matches a git tag.
1 parent d6fba1b commit 89fa8d4

File tree

1 file changed

+1
-1
lines changed
  • lib/gitlab/build/info

1 file changed

+1
-1
lines changed

lib/gitlab/build/info/ci.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def package_download_url(job_name: "Ubuntu-22.04", arch: 'amd64')
7171
folder = "#{folder}_aarch64"
7272
end
7373

74-
job_name = "#{job_name}-branch" unless Build::Check.on_tag?
74+
job_name = "#{job_name}-branch" unless Build::Info::CI.tag_name
7575

7676
package_path = "pkg/#{folder}/#{package_file_name}"
7777
Build::Info::CI.artifact_url(job_name, package_path)

0 commit comments

Comments
 (0)