The new @gitlab logo looks pretty awesome :)— Lev Lazinskiy (@levlaz) July 20, 2015
Today, we're happy to bring you a customizable Project Dashboard, better merge request approvals, a number of GitLab CI improvements (Docker support!) and more in this month's GitLab release.
This month's Most Valuable Person (MVP) is Stan Hu. He contributed support for commenting on side-by-side diffs. This is the third time this year that Stan Hu is MVP, a GitLab hat-trick (three times MVP in the same major release!). Thanks Stan, we're happy to see you score more great features!
We've gotten a lot of requests to make the README the default page of projects in GitLab. At the same time, many of our contributors didn't like this idea. They just wanted to see what is happening, not the same README.
We kept redesigning it, looking for a great middle ground. This time, we made it look good and are giving you the choice of what to see.
Want to see the README first? You can!
Rather see the activity in a project? Go ahead!
Change it in the settings, alongside the choice for either seeing the starred projects or all projects on the home page.
You can now place comments on side-by-side diffs.
With GitLab 7.12, we introduce Merge Request Approvals, allowing you to set a number of required approvals before a Merge Request can be merged.
This month, we're expanding the Approvals with the ability to set the specific people that will have to approve a merge request. We've made it flexible enough that you can have any combination of specific approvers and unspecific approvers (Mindy and any one else, for instance).
If you want, you can set the default approvers for a project:
This is a really cool new feature. When configuring your project for GitLab CI, using the new
.gitlab-ci.yml file, you can now make use of Docker Images and Services.
This means that all you need to run ruby test suite is the following
image: ruby:2.2 services: - postgres:9.3 before_install: - bundle install test: script: - bundle exec rake spec
The Image is the name of any repository present in a local Docker Engine or any repository that can be found at Docker Hub.
A Service is just another image that is run and linked to your build. This image can run any application, but the most common use case is to run a database container such as PostgreSQL. So instead of having to install PostgreSQl with every build, you can simply reuse your existing Services image, making your build less complex and much faster.
For more information about the image and Docker Hub please read the Docker Fundamentals.
If you want to ignore the status of a specific job when computing the status of the build for a certain commit, you can now specify this with the
allow_failure option in the build script.
It's easy to use in your
rspec: script: bundle exec rspec allow_failure: true
If a single commit starts many jobs in your GitLab CI project and you want to cancel it, previously you'd have to cancel all builds by hand. Now there is a single button that cancels all builds immediately.
We wanted to add flexibility to the configuration of build scripts. Rather than having predefined build types, you can now group your builds however you'd like it, with flexible build types.
This allows you to accurately define the behavior and order of builds in
types: - build - test - deploy rspec: type: test script: bundle exec rspec
The script above, for instance, will execute all jobs with the type
build first, followed by
test and lastly
deploy. The next builds are executed only if all previous succeeds. And, to speed-up building, all jobs for one type will run in parallel automatically.
This is the first step towards flexible and powerful build pipelines in GitLab CI with support for multiple stages.
You can read more information about this feature in the .gitlab-ci.yml documentation.
GitLab CI builds and runners can be tagged. This allows you to do things like running different builds on different platforms. At GitLab we use this to build our packages.
GitLab CI 7.12 and earlier would send tagged builds to runners without tags. Now, runners without tags will only pick up builds that don't have tags assigned.
This is a breaking change coming from GitLab CI 7.12. If some of your builds stop running after you upgrade to 7.13, make sure that your runners have tags and builds assigned.
We spend a lot of time writing documentation. Some projects that started small, like Omnibus-GitLab, end up becoming major projects with very large documentation. In this specific case, it could use some restructuring and indexing.
This release upgrade will require downtime.
Coming from 7.12 the database migrations in GitLab and GitLab CI will be fast but they cannot be performed online.
Due to changes in GitLab, custom git hooks no longer trigger for commits made through the web UI. They do trigger as normal with pushes to GitLab.
We're looking into a workaround for the problem and are planning to release a patch for 7.13 that resolves this issue. Follow this issue on GitLab.com for updates.
As of this release, we have dropped support for the 2.0.x versions of Ruby (MRI). We support Ruby (MRI) 2.1.x and recommend using 2.1.6.
GitLab CI now uses symmetric encryption to share 'secure variables' (provided by your users) in the SQL database. Symmetric encryption needs a secret key, which GitLab CI will generate for you when you install / upgrade to 7.13.
The key is called
db_key_base and can be found in /etc/gitlab/gitlab-secrets.json (in Omnibus packages) or config/secrets.yml (in installations from source). If you lose this secret key during a backup restore or a server migration, your users will lose their 'secure variables'.
Don't store the secret key in the same place as your database backups. If you do, somebody who steals your backup also gets your users' secure variables.
If you use configuration management (Chef, Puppet etc.) you should store the secret key securely in your configuration management system. This way, your CI server uses the correct DB secret key after a server rebuild.
By default, PostgreSQL places the unix socket file inside of the
/tmp directory. Prior to 7.13, GitLab installed using omnibus-gitlab packages would use PostgreSQL default socket location to connect to the database. This has caused issues when installing GitLab using omnibus-gitlab packages if there is an existing PostgreSQL database.
Given the goal of omnibus-gitlab package to be self contained and not influenced by existing software we've moved the socket location to
If you had previously set
db_host setting in
/etc/gitlab/gitlab.rb explicitly for
gitlab_ci, be aware that this will possibly require a change. For example, if you had
gitlab_rails['db_host'] = '/tmp'
this will need to change to
gitlab_rails['db_host'] = '/var/opt/gitlab/postgresql'
If you didn't change the db_host setting the migration will be completely automatic. - - -
If you are setting up a new GitLab installation please see the download GitLab page.
Check out our update page.
The mentioned EE only features and things like LDAP group support can be found in GitLab Enterprise Edition. For a complete overview please have a look at the feature list of GitLab EE.
Access to GitLab Enterprise Edition is included with a subscription. No time to upgrade GitLab yourself? A subscription also entitles you to our upgrade and installation services.