1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-01-18 05:18:24 +02:00
This commit is contained in:
Sven Merk 2019-03-12 11:53:23 +01:00
parent d1a25f6ae5
commit 74a06ef871
2 changed files with 18 additions and 4 deletions

View File

@ -39,11 +39,7 @@ class WhitesourceConfigurationHelper implements Serializable {
[name: 'resolveAllDependencies', value: false]
]
switch (config.scanType) {
case 'maven':
mapping += [
]
break
case 'npm':
mapping += [
@ -72,6 +68,21 @@ class WhitesourceConfigurationHelper implements Serializable {
]
break
case 'golang':
mapping += [
]
break
case 'dlang':
mapping += [
]
break
default:
// maven
mapping += [
]
}
rewriteConfiguration(script, utils, config, mapping, suffix, path, inputFile, targetFile, parsingClosure, serializationClosure)

View File

@ -125,6 +125,9 @@ class WhitesourceExecuteScanTest extends BasePiperTest {
helper.registerAllowedMethod( "fetchVulnerabilities", [List], {
return new JsonUtils().parseJsonSerializable("{ \"alerts\": [] }").alerts
})
helper.registerAllowedMethod( "createProduct", [], {
return new JsonUtils().parseJsonSerializable("{ \"productToken\": \"e30132d8e8f04a4c8be6332c75a0ff0580ab326fa7534540ad326e97a74d945b\" }")
})
helper.registerAllowedMethod( "publishHTML", [Map], {})
helper.registerAllowedMethod( "getNpmGAV", [String], {return [group: 'com.sap.node', artifact: 'test-node', version: '1.2.3']})