@@ -10,8 +10,8 @@ class Package
10
10
PACKAGE_GLOB = "pkg/**/*.{deb,rpm}" . freeze
11
11
12
12
class << self
13
- def name
14
- return "gitlab-fips" if Check . use_system_ssl?
13
+ def name ( fips : Check . use_system_ssl? )
14
+ return "gitlab-fips" if fips
15
15
return "gitlab-ee" if Check . is_ee?
16
16
17
17
"gitlab-ce"
@@ -32,7 +32,7 @@ def edition
32
32
# package version will remain the same but contents of the package will be
33
33
# different.
34
34
# To resolve this, we append a PIPELINE_ID to change the name of the package
35
- def semver_version
35
+ def semver_version ( fips : Build :: Check . use_system_ssl? )
36
36
if Build ::Check . on_tag?
37
37
# timestamp is disabled in omnibus configuration
38
38
Omnibus . load_configuration ( 'omnibus.rb' )
@@ -42,13 +42,13 @@ def semver_version
42
42
latest_version = latest_git_tag && !latest_git_tag . empty? ? latest_git_tag [ 0 , latest_git_tag . match ( "[+]" ) . begin ( 0 ) ] : '0.0.1'
43
43
commit_sha = Build ::Info ::Git . commit_sha
44
44
ver_tag = "#{ latest_version } +" + ( Build ::Check . is_nightly? ? "rnightly" : "rfbranch" )
45
- ver_tag += ".fips" if Build :: Check . use_system_ssl?
45
+ ver_tag += ".fips" if fips
46
46
[ ver_tag , Gitlab ::Util . get_env ( 'CI_PIPELINE_ID' ) , commit_sha ] . compact . join ( '.' )
47
47
end
48
48
end
49
49
50
- def release_version
51
- semver = Info ::Package . semver_version
50
+ def release_version ( fips : Build :: Check . use_system_ssl? )
51
+ semver = Info ::Package . semver_version ( fips : fips )
52
52
"#{ semver } -#{ Gitlab ::BuildIteration . new . build_iteration } "
53
53
end
54
54
0 commit comments