Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kazuhiko Shiozaki
gitlab-ce
Commits
ee0f1c00
Commit
ee0f1c00
authored
Sep 21, 2015
by
Kamil Trzcinski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use GitlabCi::VERSION when checking migration
parent
d2c90d74
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
lib/ci/migrate/manager.rb
lib/ci/migrate/manager.rb
+2
-4
No files found.
lib/ci/migrate/manager.rb
View file @
ee0f1c00
module
Ci
module
Ci
module
Migrate
module
Migrate
class
Manager
class
Manager
VERSION
=
'8.0.0.pre'
def
cleanup
def
cleanup
$progress
.
print
"Deleting tmp directories ... "
$progress
.
print
"Deleting tmp directories ... "
...
@@ -50,9 +48,9 @@ module Ci
...
@@ -50,9 +48,9 @@ module Ci
ENV
[
"VERSION"
]
=
"
#{
settings
[
:db_version
]
}
"
if
settings
[
:db_version
].
to_i
>
0
ENV
[
"VERSION"
]
=
"
#{
settings
[
:db_version
]
}
"
if
settings
[
:db_version
].
to_i
>
0
# restoring mismatching backups can lead to unexpected problems
# restoring mismatching backups can lead to unexpected problems
if
settings
[
:gitlab_version
]
!=
VERSION
if
settings
[
:gitlab_version
]
!=
GitlabCi
::
VERSION
puts
"GitLab CI version mismatch:"
.
red
puts
"GitLab CI version mismatch:"
.
red
puts
" Your current GitLab CI version (
#{
VERSION
}
) differs from the GitLab CI (
#{
settings
[
:gitlab_version
]
}
) version in the backup!"
.
red
puts
" Your current GitLab CI version (
#{
GitlabCi
::
VERSION
}
) differs from the GitLab CI (
#{
settings
[
:gitlab_version
]
}
) version in the backup!"
.
red
exit
1
exit
1
end
end
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment