1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2024-12-14 11:03:09 +02:00
sap-jenkins-library/test/groovy/com/sap/piper/versioning
Florian Wilhelm eaf5479e9c
Fix maven parameter handling (#1493)
Avoid maven error `Unknown lifecycle phase \"-\"` when the value of a define contains `-`.

Don't split and trim maven arguments. Expect they come in as a list, keep them as list.

This is a breaking change compared to the old Groovy implementation which relied on using a shell for calling maven.

As an example, consider this diff:

```diff
-        goals: 'org.apache.maven.plugins:maven-help-plugin:3.1.0:evaluate',
-        defines: "-Dexpression=$pomPathExpression -DforceStdout -q",
+        goals: ['org.apache.maven.plugins:maven-help-plugin:3.1.0:evaluate'],
+        defines: ["-Dexpression=$pomPathExpression", "-DforceStdout", "-q"],
```
2020-05-06 17:43:32 +02:00
..
ArtifactVersioningTest.groovy Step for automatic versioning (#65) 2018-02-07 13:17:33 +01:00
DockerArtifactVersioningTest.groovy Fix docker versioning with registry port (#686) 2019-06-19 13:00:56 +02:00
DubArtifactVersioningTest.groovy Rename dlang to dub (#762) 2019-07-03 11:27:07 +02:00
GolangArtifactVersioningTest.groovy Better readable rule names: readFileRule 2019-01-23 14:54:52 +01:00
MavenArtifactVersioningTest.groovy Fix maven parameter handling (#1493) 2020-05-06 17:43:32 +02:00
MtaArtifactVersioningTest.groovy Better readable rule names: shellRule 2019-01-23 14:54:49 +01:00
NpmArtifactVersioningTest.groovy Better readable rule names: writeJsonRule 2019-01-23 14:54:51 +01:00
PipArtifactVersioningTest.groovy Better readable rule names: readFileRule 2019-01-23 14:54:52 +01:00
SbtArtifactVersioningTest.groovy Better readable rule names: writeJsonRule 2019-01-23 14:54:51 +01:00