mirror of
https://github.com/SAP/jenkins-library.git
synced 2024-12-12 10:55:20 +02:00
9658f3b480
* writeFile() cannot be passed a Map I've changed the return type of DebugReport.generateReport() from String to Map in order to get the generated file name as part of the return value instead of getting it from a field of DebugReport. The UnitTest checks whether writeFile() creates the debug_report file successfully and whether it has the expected contents. The effect of passing the Map instead of map.contents to writeFile() should have been an unnecessary wrapping via Map.toString() as in the test, but in the execution context of Jenkins, this throws an IllegalArgumentException: Could not instantiate {... and then the results of map.toString(). * Improve JenkinsWriteFileRule compatibility Calling m.text.toString() is wrong, since the type stored at m.text already needs to be a String (or GString). Expecting valid parameters here makes sure problems are detected by tests already. (All tests pass as before.) |
||
---|---|---|
.. | ||
BasePiperTest.groovy | ||
BasePiperTestContext.groovy | ||
CommandLineMatcher.groovy | ||
JenkinsCredentialsRule.groovy | ||
JenkinsDockerExecuteRule.groovy | ||
JenkinsEnvironmentRule.groovy | ||
JenkinsErrorRule.groovy | ||
JenkinsFileExistsRule.groovy | ||
JenkinsInfluxDataRule.groovy | ||
JenkinsLockRule.groovy | ||
JenkinsLoggingRule.groovy | ||
JenkinsMockStepRule.groovy | ||
JenkinsPropertiesRule.groovy | ||
JenkinsReadFileRule.groovy | ||
JenkinsReadJsonRule.groovy | ||
JenkinsReadMavenPomRule.groovy | ||
JenkinsReadYamlRule.groovy | ||
JenkinsResetDefaultCacheRule.groovy | ||
JenkinsScriptLoaderRule.groovy | ||
JenkinsSetupRule.groovy | ||
JenkinsShellCallRule.groovy | ||
JenkinsStepRule.groovy | ||
JenkinsWithEnvRule.groovy | ||
JenkinsWriteFileRule.groovy | ||
JenkinsWriteJsonRule.groovy | ||
JenkinsWriteYamlRule.groovy | ||
LibraryLoadingTestExecutionListener.groovy | ||
PipelineWhenException.groovy | ||
PluginMock.groovy | ||
ProjectSource.groovy | ||
Rules.groovy | ||
SharedLibraryCreator.groovy | ||
StepHelper.groovy | ||
StepTracker.groovy |