Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
21005c23
Commit
21005c23
authored
Apr 03, 2019
by
Victor Zagorodny
Committed by
Achilleas Pipinellis
Apr 03, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add docs on MAVEN_CLI_OPTS to License Management CI example page
parent
3d40cca1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
0 deletions
+30
-0
doc/ci/examples/license_management.md
doc/ci/examples/license_management.md
+25
-0
ee/changelogs/unreleased/6838-add-maven-cli-opts-to-license-mgmt-templates.yml
...sed/6838-add-maven-cli-opts-to-license-mgmt-templates.yml
+5
-0
No files found.
doc/ci/examples/license_management.md
View file @
21005c23
...
...
@@ -121,6 +121,31 @@ license_management:
license_management
:
gl-license-management-report.json
```
## Maven projects configuration
The License Management tool provides a
`MAVEN_CLI_OPTS`
environment variable which can hold
the command line arguments to pass to the
`mvn install`
command which is executed under the hood.
Feel free to use it for the customization of Maven execution, e.g.:
```
yaml
include
:
template
:
License-Management.gitlab-ci.yml
license_management
:
variables
:
MAVEN_CLI_OPTS
:
--debug
```
CAUTION:
**Caution:**
`mvn install`
runs through all of the
[
build life cycle
](
http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html
)
stages prior to
`"install"`
, including
`"test"`
. Running unit tests is not directly necessary
for the license scanning purposes and consumes time, so it's skipped by having the default value of
`MAVEN_CLI_OPTS`
as
`-DskipTests`
. If you want to supply custom
`MAVEN_CLI_OPTS`
, don't forget to add
`-DskipTests`
to your
options.
TIP:
**Tip:**
If you still need to run tests during
`mvn install`
, supply
`MAVEN_CLI_OPTS`
with value
`-DskipTests=false`
.
## Previous job definitions
CAUTION:
**Caution:**
...
...
ee/changelogs/unreleased/6838-add-maven-cli-opts-to-license-mgmt-templates.yml
0 → 100644
View file @
21005c23
---
title
:
Added MAVEN_CLI_OPTS env var support to License Management CI job
merge_request
:
10012
author
:
type
:
added
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment