Skip to content
Snippets Groups Projects
Commit 8d32dfc2 authored by Marin Jankovski's avatar Marin Jankovski
Browse files

Rename GILAB_VERSION to VERSION.

parent 0bdd183e
No related branches found
No related tags found
1 merge request!578WIP | Build versions
File moved
Loading
Loading
@@ -16,7 +16,7 @@
# limitations under the License.
#
require "#{Omnibus::Config.project_root}/lib/gitlab/version"
version = Gitlab::Version.new("GITLAB_VERSION")
version = Gitlab::Version.new("VERSION")
 
name "gitlab-rails"
default_version version.print
Loading
Loading
module Gitlab
class BuildVersion
def initialize
gitlab_version_file = File.expand_path("GITLAB_VERSION", Omnibus::Config.project_root)
@version = File.read(gitlab_version_file).chomp
gitlab_version_file = File.expand_path("VERSION", Omnibus::Config.project_root)
@version = File.read(gitlab_version_file).strip
rescue Errno::ENOENT
# No file
end
Loading
Loading
Loading
Loading
@@ -22,7 +22,7 @@ module Gitlab
 
def remote
case @filename
when "GITLAB_VERSION"
when "VERSION"
if @read_version.include?('-ee')
"git@dev.gitlab.org:gitlab/gitlab-ee.git"
else
Loading
Loading
Loading
Loading
@@ -20,7 +20,7 @@ main() {
gitlab_workhorse_ref_id=$(check_remote_ref gitlab_workhorse)
assert_non_empty gitlab_workhorse_ref_id
 
set_source_and_version $gitlab_rails_ref GITLAB_VERSION
set_source_and_version $gitlab_rails_ref VERSION
set_source_and_version $gitlab_shell_ref GITLAB_SHELL_VERSION
set_source_and_version $gitlab_workhorse_ref GITLAB_WORKHORSE_VERSION
}
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment