Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Maven
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SmartDataLab
public
CI-CD components
Maven
Commits
d7c2da14
Commit
d7c2da14
authored
3 years ago
by
Girija Saint Ange
Browse files
Options
Downloads
Patches
Plain Diff
fix: Use Dmaven.test.skip to avoid compiling and running tests instead of DskipTests
parent
4215efda
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+2
-2
2 additions, 2 deletions
README.md
templates/gitlab-ci-maven.yml
+2
-2
2 additions, 2 deletions
templates/gitlab-ci-maven.yml
with
4 additions
and
4 deletions
README.md
+
2
−
2
View file @
d7c2da14
...
...
@@ -170,8 +170,8 @@ They are bound to the `publish` stage, and use the following variables:
| ----------------------------------- | ------------------------------------------------------------ | ----------------- |
|
`MAVEN_DEPLOY_ENABLED`
| Set to
`true`
to enable a publish jobs | _none_ (disabled) |
|
`MAVEN_DEPLOY_FROM_UNPROTECTED_DISABLED`
| Set to
`true`
to limit snapshot publication to protected branches | _none_ (disabled) |
|
`MAVEN_DEPLOY_ARGS`
| Maven arguments for the Snapshot job |
`deploy -D
skipTests
`
|
|
`MAVEN_RELEASE_ARGS`
| Maven arguments for the Release job |
`release:prepare release:perform -Darguments=-D
skipTests
`
|
|
`MAVEN_DEPLOY_ARGS`
| Maven arguments for the Snapshot job |
`deploy -D
maven.test.skip=true
`
|
|
`MAVEN_RELEASE_ARGS`
| Maven arguments for the Release job |
`release:prepare release:perform -Darguments=-D
maven.test.skip=true
`
|
|
`MAVEN_RELEASE_SCM_COMMENT_PREFIX`
| Maven release plugin
[
scmCommentPrefix
](
https://maven.apache.org/maven-release/maven-release-plugin/prepare-mojo.html#scmCommentPrefix
)
parameter |
`[ci skip][maven-release-plugin]`
|
|
`MVN_SEMREL_RELEASE_DISABLED`
| Set to
`true`
to disable
[
semantic-release integration
](
#semantic-release-integration
)
|
`[ci skip][maven-release-plugin]`
|
...
...
This diff is collapsed.
Click to expand it.
templates/gitlab-ci-maven.yml
+
2
−
2
View file @
d7c2da14
...
...
@@ -76,10 +76,10 @@ variables:
-Dformats=HTML,JSON,XML
# Maven deploy arguments
MAVEN_DEPLOY_ARGS
:
"
deploy
-D
skipTests
"
MAVEN_DEPLOY_ARGS
:
"
deploy
-D
maven.test.skip=true
"
# Maven release arguments
MAVEN_RELEASE_ARGS
:
"
release:prepare
release:perform
-Darguments=-D
skipTests
"
MAVEN_RELEASE_ARGS
:
"
release:prepare
release:perform
-Darguments=-D
maven.test.skip=true
"
MAVEN_RELEASE_SCM_COMMENT_PREFIX
:
"
[ci
skip][maven-release-plugin]"
stages
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment