Вопрос

Как проверить, какая версия GitLab установлена ​​на сервере?

Я имею в виду версию, указанную в журнале изменений GitLab:
https://gitlab.com/gitlab-org/gitlab-foss/blob/master/CHANGELOG.md

Например:«6.5.0», «6.4.3» и т. д.

Это можно сделать только через терминал?
Есть ли способ сделать это удаленно (с помощью браузера вместо терминала)?

Это было полезно?

Решение

Я обновил свой сервер в Gitlab 6.6.4 и, наконец, нашел путь, чтобы получить версию GitLab Delable без доступа SSH к серверу.

Вы должны войти в систему для доступа к следующей странице: https://your.domain.name/help

Это показывает что-то подобное:

<Сильные> Gitlab 6.6.4 42e34ae

gitlab - это программное обеспечение с открытым исходным кодом для совместного использования кода.
...
и т. д.

Другие советы

для версий Omnibus: \

sudo gitlab-rake gitlab:env:info
.

Пример:

System information
System:     Ubuntu 12.04
Current User:   git
Using RVM:  no
Ruby Version:   2.1.7p400
Gem Version:    2.2.5
Bundler Version:1.10.6
Rake Version:   10.4.2
Sidekiq Version:3.3.0

GitLab information
Version:    8.2.2
Revision:   08fae2f
Directory:  /opt/gitlab/embedded/service/gitlab-rails
DB Adapter: postgresql
URL:        https://your.hostname
HTTP Clone URL: https://your.hostname/some-group/some-project.git
SSH Clone URL:  git@your.hostname:some-group/some-project.git
Using LDAP: yes
Using Omniauth: no

GitLab Shell
Version:    2.6.8
Repositories:   /var/opt/gitlab/git-data/repositories
Hooks:      /opt/gitlab/embedded/service/gitlab-shell/hooks/
Git:        /opt/gitlab/embedded/bin/git
.

Вы можете получить доступ к версии через URL, веб-графический интерфейс и API для отдыха.

через URL-адрес

HTML-страница, отображаемая версию, может отображаться в браузере на https://your-gitlab-url/help.

через меню в веб-графике

Если вам не волнует этот URL-адрес, вы также можете получить доступ к одной и той же странице HTML из меню в веб-графике GitLab:

в gitlab 11 а позже

  1. Войти в Gitlab
  2. Нажмите на ? Выпадающее меню в правом верхнем углу. Выберите Справка .
  3. версия GitLab появляется в верхней части страницы
  4. в более ранних версиях, как gitlab 9

    1. Войти в Gitlab
    2. Нажмите на

У вас есть два варианта (после входа в систему).

  1. Использовать URL-адрес API https://gitlab.example.com/api/v4/version (вы можете использовать его из командной строки с личным токеном), он возвращает {"version":"10.1.0","revision":"5a695c4"}
  2. Используйте URL-адрес HELP в браузере https://gitlab.example.com/help и вы увидите версию GitLab, т.е. GitLab Community Edition 10.1.0 5a695c4

Если вы используете самосовестную версию GitLab, вы можете рассмотреть возможность выполнения этой команды.

grep gitlab /opt/gitlab/version-manifest.txt

CD / OPT / GitLab

cat version-mainesest.txt

Пример:

gitlab-ctl 6.8.2-omnibus
GitLab-Rails V6.8.2

Текущая версия Gitlab - 6.8.2

 Скриншот консоли

Get information about GitLab and the system it runs on :

bundle exec rake gitlab:env:info RAILS_ENV=production

Example output of gitlab:env:info

System information
System:     Arch Linux
Current User:   git
Using RVM:  yes
RVM Version:    1.20.3
Ruby Version:   2.0.0p0
Gem Version:    2.0.0
Bundler Version:1.3.5
Rake Version:   10.0.4

GitLab information
Version:    5.2.0.pre
Revision:   4353bab
Directory:  /home/git/gitlab
DB Adapter: mysql2
URL:        http://gitlab.arch
HTTP Clone URL: http://gitlab.arch/some-project.git
SSH Clone URL:  git@gitlab.arch:some-project.git
Using LDAP: no
Using Omniauth: no

GitLab Shell
Version:    1.4.0
Repositories:   /home/git/repositories/
Hooks:      /home/git/gitlab-shell/hooks/
Git:        /usr/bin/git

Read this article, it will help you.

Instead of http://domain-name/help you can also check your Gitlab version name in browser by logging as Admin

  • Go to http://domain-name
  • Log in to Gitlab as Admin (Root)
  • Go to Admin Area
  • On the right corner, below Groups tab, you can find Components tab

There you can find not only Gitlab version but also different components like Gitlab Shell, Gitlab workhorse, Gitlab API etc, version numbers enter image description here You will also find the suggestions to update the versions there

cat /opt/gitlab/version-manifest.txt |grep gitlab-ce|awk '{print $2}'

It can be retrieved using REST, see Version API :

curl --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.example.com/api/v4/version

For authentication see Personal access tokens documentation.

If using the Gitlab Docker image:

sudo cat /srv/gitlab/data/gitlab-rails/VERSION

Example output:

12.1.3

If you are an admin and if you want to see the Gitlab version (and more you didn't know about) click on the wrench/admin menu icon and under Components you can see a lot , especially if you are using Omnibus.

I have Version: 12.2.0-ee and I tried the URL via (https://yourgitlab/help ) but I have not got this information. In the other hand I got this with gitlab-rake with success into the command line:

sudo gitlab-rake gitlab:env:info

... GitLab information Version: 12.2.0-ee ...

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top