Skip to content
Snippets Groups Projects
Commit d7c2da14 authored by Girija Saint Ange's avatar Girija Saint Ange
Browse files

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
......@@ -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 -DskipTests` |
| `MAVEN_RELEASE_ARGS` | Maven arguments for the Release job | `release:prepare release:perform -Darguments=-DskipTests` |
| `MAVEN_DEPLOY_ARGS` | Maven arguments for the Snapshot job | `deploy -Dmaven.test.skip=true` |
| `MAVEN_RELEASE_ARGS` | Maven arguments for the Release job | `release:prepare release:perform -Darguments=-Dmaven.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]` |
......
......@@ -76,10 +76,10 @@ variables:
-Dformats=HTML,JSON,XML
# Maven deploy arguments
MAVEN_DEPLOY_ARGS: "deploy -DskipTests"
MAVEN_DEPLOY_ARGS: "deploy -Dmaven.test.skip=true"
# Maven release arguments
MAVEN_RELEASE_ARGS: "release:prepare release:perform -Darguments=-DskipTests"
MAVEN_RELEASE_ARGS: "release:prepare release:perform -Darguments=-Dmaven.test.skip=true"
MAVEN_RELEASE_SCM_COMMENT_PREFIX: "[ci skip][maven-release-plugin]"
stages:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment