Commit 2c01201b authored by GitLab Bot's avatar GitLab Bot

Automatic merge of gitlab-org/gitlab-ce master

parents 5fc396e4 9e85bd62
...@@ -923,6 +923,29 @@ backup beforehand. ...@@ -923,6 +923,29 @@ backup beforehand.
UPDATE ci_runners SET token = null, token_encrypted = null; UPDATE ci_runners SET token = null, token_encrypted = null;
``` ```
#### Reset pending pipeline jobs
1. Enter the DB console:
For Omnibus GitLab packages:
```sh
sudo gitlab-rails dbconsole
```
For installations from source:
```sh
sudo -u git -H bundle exec rails dbconsole RAILS_ENV=production
```
1. Clear all the tokens for pending jobs:
```sql
-- Clear build tokens
UPDATE ci_builds SET token = null, token_encrypted = null;
```
A similar strategy can be employed for the remaining features - by removing the A similar strategy can be employed for the remaining features - by removing the
data that cannot be decrypted, GitLab can be brought back into working order, data that cannot be decrypted, GitLab can be brought back into working order,
and the lost data can be manually replaced. and the lost data can be manually replaced.
......
...@@ -169,9 +169,9 @@ If you still need to run tests during `mvn install`, add `-DskipTests=false` to ...@@ -169,9 +169,9 @@ If you still need to run tests during `mvn install`, add `-DskipTests=false` to
> [Introduced](https://gitlab.com/gitlab-org/security-products/license-management/merge_requests/36) in [GitLab Ultimate](https://about.gitlab.com/pricing/) 12.0. > [Introduced](https://gitlab.com/gitlab-org/security-products/license-management/merge_requests/36) in [GitLab Ultimate](https://about.gitlab.com/pricing/) 12.0.
License Compliance uses Python 2.7 and pip 10.0 by default. License Compliance uses Python 3.5 and pip 19.1 by default.
If your project requires Python 3, you can switch to Python 3.5 and pip 19.1 If your project requires Python 2, you can switch to Python 2.7 and pip 10.0
by setting the `LM_PYTHON_VERSION` environment variable to `3`. by setting the `LM_PYTHON_VERSION` environment variable to `2`.
```yaml ```yaml
include: include:
...@@ -179,7 +179,7 @@ include: ...@@ -179,7 +179,7 @@ include:
license_management: license_management:
variables: variables:
LM_PYTHON_VERSION: 3 LM_PYTHON_VERSION: 2
``` ```
## Project policies for License Compliance ## Project policies for License Compliance
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment