Commit 3c0e2047 authored by Suzanne Selhorn's avatar Suzanne Selhorn

Merge branch 'master' into 'master'

Docs - Updating maven registry

See merge request gitlab-org/gitlab!37891
parents 816b9e63 f745d148
...@@ -322,7 +322,7 @@ repositories { ...@@ -322,7 +322,7 @@ repositories {
name "GitLab" name "GitLab"
credentials(HttpHeaderCredentials) { credentials(HttpHeaderCredentials) {
name = 'Job-Token' name = 'Job-Token'
value = '${CI_JOB_TOKEN}' value = System.getenv("CI_JOB_TOKEN")
} }
authentication { authentication {
header(HttpHeaderAuthentication) header(HttpHeaderAuthentication)
...@@ -690,7 +690,7 @@ downloaded from the GitLab Package Registry: ...@@ -690,7 +690,7 @@ downloaded from the GitLab Package Registry:
Downloading from gitlab-maven: http://gitlab.com/api/v4/projects/PROJECT_ID/packages/maven/com/mycompany/mydepartment/my-project/1.0-SNAPSHOT/my-project-1.0-20200128.120857-1.pom Downloading from gitlab-maven: http://gitlab.com/api/v4/projects/PROJECT_ID/packages/maven/com/mycompany/mydepartment/my-project/1.0-SNAPSHOT/my-project-1.0-20200128.120857-1.pom
``` ```
#### Install with `mvn dependency:get` ### Install using Maven with `mvn dependency:get`
The second way to install packages is to use the Maven commands directly. The second way to install packages is to use the Maven commands directly.
Inside your project directory, run: Inside your project directory, run:
...@@ -817,11 +817,6 @@ is updated: ...@@ -817,11 +817,6 @@ is updated:
1. Push those files to your repository. 1. Push those files to your repository.
The next time the `deploy` job runs, it will copy `ci_settings.xml` to the
user's home location (in this case the user is `root` since it runs in a
Docker container), and Maven will use the configured CI
[environment variables](../../../ci/variables/README.md#predefined-environment-variables).
### Version validation ### Version validation
The version string is validated using the following regex. The version string is validated using the following regex.
......
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