Skip to content
Snippets Groups Projects
Select Git revision
  • test-coverage
  • ci-docs
  • master default
  • 8-1-stable
  • 8-0-stable
  • migrate-tables-to-ci-prefix
  • 7-14-stable
  • rs-rspec3
  • 7-13-stable
  • redis-cache
  • testbranchjob
  • update-gems
  • 7-12-stable
  • update_doc
  • lint_url_fix
  • 7-11-stable
  • travis-ci
  • 7-10-stable
  • backup
  • ci_forking
  • v8.1.0.rc2
  • v8.1.0.rc1
  • v8.0.5
  • v8.0.4
  • v8.0.3
  • v8.0.2
  • v8.0.1
  • v8.0.0
  • v8.0.0.rc4
  • v8.0.0.rc3
  • v8.0.0.rc2
  • v8.0.0.rc1
  • v7.14.3
  • v7.14.2
  • v7.14.1
  • v7.14.0
  • v7.14.0.rc3
  • v7.14.0.rc2
  • v7.14.0.rc1
  • v7.13.5
40 results

4.1-to-4.2.md

Code owners
Assign users and groups as approvers for specific file changes. Learn more.

Update from 4.1 to 4.2

GitLab CI 4.x requires GitLab 6.3 or higher

1. stop CI server

sudo service gitlab_ci stop

2. Switch to your gitlab_ci user

sudo su gitlab_ci
cd /home/gitlab_ci/gitlab-ci

3. get latest code

git fetch
git checkout 4-2-stable

4. Install libs, migrations etc

# For MySQL users
bundle install --without postgres development test --deployment

# For Postgres users
bundle install --without mysql development test --deployment

# Run migrations
bundle exec rake db:migrate RAILS_ENV=production

5. Install the new init script

As a user with sudo rights:

cd /home/gitlab_ci/gitlab-ci
sudo cp lib/support/init.d/gitlab_ci /etc/init.d/gitlab_ci
sudo chmod +x /etc/init.d/gitlab_ci

6. Start web application

sudo service gitlab_ci start