mirror of
https://github.com/SAP/jenkins-library.git
synced 2024-12-14 11:03:09 +02:00
a864cf0f60
* Fix docker.includes in WhitesourceConfigurationHelper Not sure, but it seems the [`docker.includes` parameter](https://whitesource.atlassian.net/wiki/spaces/WD/pages/804814917/Unified+Agent+Configuration+File+and+Parameters#UnifiedAgentConfigurationFileandParameters-DockerImages) needs to be a regex. Our pipeline is failing with: ``` 10:22:33 [ERROR] [2020-06-15 08:22:33,740 +0000] - Resolve DockerEntity Exception Dangling meta character '*' near index 0 10:22:33 *.tar 10:22:33 ^ 10:22:33 [DEBUG] [2020-06-15 08:22:33,743 +0000] - Resolve DockerEntity Exception {} 10:22:33 java.util.regex.PatternSyntaxException: Dangling meta character '*' near index 0 10:22:33 *.tar 10:22:33 ^ 10:22:33 at java.base/java.util.regex.Pattern.error(Unknown Source) 10:22:33 at java.base/java.util.regex.Pattern.sequence(Unknown Source) 10:22:33 at java.base/java.util.regex.Pattern.expr(Unknown Source) 10:22:33 at java.base/java.util.regex.Pattern.compile(Unknown Source) 10:22:33 at java.base/java.util.regex.Pattern.<init>(Unknown Source) 10:22:33 at java.base/java.util.regex.Pattern.compile(Unknown Source) 10:22:33 at org.whitesource.utils.WssStringUtils.isMatchingPattern(WssStringUtils.java:49) 10:22:33 at org.whitesource.agent.dependency.resolver.docker.DockerResolver.filterTarImagesToScan(DockerResolver.java:296) 10:22:33 at org.whitesource.agent.dependency.resolver.docker.DockerResolver.resolveDockerEntities(DockerResolver.java:186) 10:22:33 at org.whitesource.fs.scanOrigins.DockerEntityScanOrigin.scan(DockerEntityScanOrigin.java:66) 10:22:33 at org.whitesource.fs.scanOrigins.ScanOrigin.runOriginScan(ScanOrigin.java:36) 10:22:33 at org.whitesource.fs.FileSystemAgent.createProjects(FileSystemAgent.java:132) 10:22:33 at org.whitesource.fs.Main.scanAndSend(Main.java:157) 10:22:33 at org.whitesource.fs.Main.main(Main.java:102) 10:22:33 [WARN] [2020-06-15 08:22:33,744 +0000] - Resolve DockerEntity Exception Dangling meta character '*' near index 0 10:22:33 *.tar 10:22:33 ^ ``` * Switch docker.includes to slashy string * Fix docker includes pattern in tests Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com> Co-authored-by: D070410 <srinikitha.kondreddy@sap.com> |
||
---|---|---|
.. | ||
analytics | ||
cm | ||
integration | ||
k8s | ||
mta | ||
tools/neo | ||
variablesubstitution | ||
versioning | ||
BashUtilsTest.groovy | ||
CfManifestUtilsTest.groovy | ||
ConfigurationHelperTest.groovy | ||
ConfigurationLoaderTest.groovy | ||
ConfigurationMergerTest.groovy | ||
DebugReportTest.groovy | ||
DescriptorUtilsTest.groovy | ||
DockerUtilsTest.groovy | ||
EnvironmentUtilsTest.groovy | ||
GitUtilsTest.groovy | ||
JenkinsUtilsTest.groovy | ||
MapUtilsTest.groovy | ||
MtaUtilsTest.groovy | ||
PiperGoUtilsTest.groovy | ||
PrerequisitesTest.groovy | ||
UtilsTest.groovy | ||
WhitesourceConfigurationHelperTest.groovy |