1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2024-12-12 10:55:20 +02:00
sap-jenkins-library/test/groovy
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
..
com/sap/piper Fix maven parameter handling (#1493) 2020-05-06 17:43:32 +02:00
templates Patch Urls (#929) 2019-11-11 17:40:23 +01:00
util Use mavenExecute from go (#1388) 2020-04-24 10:41:49 +02:00
AbapEnvironmentPullGitRepoTest.groovy fix: prevent script to json conversion (#1495) 2020-05-05 15:21:59 +02:00
ArtifactSetVersionTest.groovy Fix maven parameter handling (#1493) 2020-05-06 17:43:32 +02:00
BatsExecuteTestsTest.groovy Improve error messages for test failures (#1417) 2020-04-17 11:59:51 +02:00
BuildExecuteTest.groovy Add step buildExecute (#527) 2019-07-02 13:00:36 +02:00
CfManifestSubstituteVariablesTest.groovy Variable Substitution in YAML Files (#852) 2019-09-06 10:20:35 +02:00
CheckChangeInDevelopmentTest.groovy checkChangeInDevelopment with docker 2019-03-19 10:07:18 +01:00
CheckmarxExecuteScanTest.groovy piperExecuteBin: fix reading environment (#1452) 2020-04-24 22:41:34 +02:00
ChecksPublishResultsTest.groovy Revert "ConfigurationLoader, ConfigurationHelper working without script reference" 2019-11-26 10:51:32 +01:00
CloudFoundryCreateServiceTest.groovy Fix bug and added documentation for cloudFoundryCreateService step (#967) 2019-11-12 10:29:08 +01:00
CloudFoundryDeployTest.groovy fix: fixing issues with cf docker deployment (#1289) 2020-04-07 09:10:38 +02:00
CommonPipelineEnvironmentTest.groovy Pass container image via CPE (#1113) 2020-01-29 16:03:18 +01:00
CommonStepsTest.groovy test: activate common test cases using piperExecuteBin (#1501) 2020-05-05 14:31:12 +02:00
ContainerExecuteStructureTestsTest.groovy Improve error messages for test failures (#1417) 2020-04-17 11:59:51 +02:00
ContainerPushToRegistryTest.groovy Add step buildExecute (#527) 2019-07-02 13:00:36 +02:00
DebugReportArchiveTest.groovy Implement archiving the debug report as step (#1152) 2020-02-07 16:30:08 +01:00
DetectExecuteScanTest.groovy remove !#groovy header 2019-05-23 10:37:28 +02:00
DockerExecuteOnKubernetesTest.groovy Add option to always run stages in a pod (#1414) 2020-04-17 10:31:04 +02:00
DockerExecuteTest.groovy Handle sidecar parameters in dockerExecuteOnKubernetes (#869) 2019-09-12 10:52:05 +02:00
DownloadCacheUtilsTest.groovy Maven build groovy (#1303) 2020-03-23 09:58:54 +01:00
DubExecuteTest.groovy feat(dub): expose dockerEnvVars and dockerWorkspace in dubExecute (#1012) 2019-12-09 16:24:11 +01:00
DurationMeasureTest.groovy remove !#groovy header 2019-05-23 10:37:28 +02:00
FioriOnCloudPlatformPipelineTest.groovy Streamline calling piper go binary (#1254) 2020-03-17 09:19:09 +01:00
GaugeExecuteTestsTest.groovy Improve error messages for test failures (#1417) 2020-04-17 11:59:51 +02:00
GithubPublishReleaseTest.groovy fix: prevent script to json conversion (#1495) 2020-05-05 15:21:59 +02:00
HadolintExecuteTest.groovy Patch Urls (#929) 2019-11-11 17:40:23 +01:00
HandlePipelineStepErrorsTest.groovy Test DebugReport usage in handlePipelineStepErrors 2020-02-03 12:37:20 +01:00
HealthExecuteCheckTest.groovy remove !#groovy header 2019-05-23 10:37:28 +02:00
InfluxWriteDataTest.groovy Support InfluxDB plugin in version 2.0 (#1130) 2020-02-06 11:27:31 +01:00
JenkinsMaterializeLogTest.groovy Fix Could not find matching constructor for: hudson.FilePath (#1134) 2020-02-03 12:28:16 +01:00
KanikoExecuteTest.groovy remove !#groovy header 2019-05-23 10:37:28 +02:00
KarmaExecuteTestsTest.groovy seleniumExecuteTests: expose container metadata via env vars (#1170) 2020-02-13 09:09:08 +01:00
KubernetesDeployTest.groovy piperExecuteBin: fix reading environment (#1452) 2020-04-24 22:41:34 +02:00
MailSendNotificationTest.groovy Ignore email addresses containing string "noreply" (#1178) 2020-02-13 15:12:48 +01:00
MavenExecuteStaticCodeChecksTest.groovy piperExecuteBin: fix reading environment (#1452) 2020-04-24 22:41:34 +02:00
MavenExecuteTest.groovy piperExecuteBin: fix reading environment (#1452) 2020-04-24 22:41:34 +02:00
MtaBuildTest.groovy Switch the default for the mta build toolset (#1157) 2020-02-07 12:20:46 +01:00
MulticloudDeployTest.groovy User piper docker images (#920) 2019-10-25 17:49:54 +02:00
NeoDeployTest.groovy refactor(deployment): ease debugging in blue ocean (#1173) 2020-02-14 13:41:36 +01:00
NewmanExecuteTest.groovy fix(NPM): change NodeJS image to LTS (#1069) 2020-01-29 11:17:56 +01:00
NexusUploadTest.groovy piperExecuteBin: fix reading environment (#1452) 2020-04-24 22:41:34 +02:00
NpmExecuteTest.groovy fix(NPM): change NodeJS image to LTS (#1069) 2020-01-29 11:17:56 +01:00
PipelineExecuteTest.groovy remove utils.getMandatoryParameter() 2019-04-09 16:25:25 +02:00
PipelineRestartStepsTest.groovy remove !#groovy header 2019-05-23 10:37:28 +02:00
PipelineStashFilesAfterBuildTest.groovy update stashing behavior (#628) 2019-04-02 13:13:25 +02:00
PipelineStashFilesBeforeBuildTest.groovy remove opa5 stash (#897) 2019-11-07 11:02:27 +01:00
PiperExecuteBinTest.groovy Allow proper usage of resilience feature in golang steps (#1487) 2020-04-30 10:39:27 +02:00
PiperPublishWarningsTest.groovy chore(test): cleanup metaClass (#1104) 2020-01-22 08:57:37 +01:00
PiperStageWrapperTest.groovy Add option to always run stages in a pod (#1414) 2020-04-17 10:31:04 +02:00
PrepareDefaultValuesTest.groovy remove semikolons 2019-05-23 14:28:32 +02:00
SeleniumExecuteTestsTest.groovy fix: handle NPE in seleniumExecuteTests (#1239) 2020-03-03 17:09:09 +01:00
SetupCommonPipelineEnvironmentTest.groovy Streamline calling piper go binary (#1254) 2020-03-17 09:19:09 +01:00
SlackSendNotificationTest.groovy remove !#groovy header 2019-05-23 10:37:28 +02:00
SnykExecuteTest.groovy fix(NPM): change NodeJS image to LTS (#1069) 2020-01-29 11:17:56 +01:00
SonarExecuteScanTest.groovy refactor(sonar): switch to Sonar scan in GO (#1320) 2020-04-08 12:55:46 +02:00
SpinnakerTriggerPipelineTest.groovy Add step spinnakerTriggerPipeline (#793) 2019-11-06 15:37:14 +01:00
TestsPublishResultsTest.groovy Make cobertura defaults compatible with UI5 (#941) 2019-11-05 15:33:18 +01:00
TmsUploadTest.groovy Fail early if file which should be uploaded does not exist. (#909) 2019-10-22 12:28:43 +02:00
TransportRequestCreateTest.groovy commonPipelineEnvironment: add propertiesMap (#526) 2019-04-10 10:56:36 +02:00
TransportRequestReleaseTest.groovy release transport request for cts 2019-03-19 10:07:18 +01:00
TransportRequestUploadFileTest.groovy docker for upload file SOLMAN 2019-03-19 10:07:18 +01:00
UiVeri5ExecuteTestsTest.groovy Improve error messages for test failures (#1417) 2020-04-17 11:59:51 +02:00
WhitesourceExecuteScanTest.groovy fix(NPM): change NodeJS image to LTS (#1069) 2020-01-29 11:17:56 +01:00
XsDeployTest.groovy Use old approach for resolving mode action and docker related params 2020-01-17 09:40:31 +01:00