mirror of
https://github.com/SAP/jenkins-library.git
synced 2025-01-18 05:18:24 +02:00
Merge pull request #1055 from SAP/nevskrem-patch-1
Fix NPE in case no version specified in descriptor
This commit is contained in:
commit
368f7027b6
@ -468,7 +468,7 @@ private resolveProjectIdentifiers(script, descriptorUtils, config) {
|
||||
config.whitesource.projectName = "${gav.group?:''}${gav.group?'.':''}${gav.artifact}"
|
||||
|
||||
def versionFragments = gav.version?.tokenize('.')
|
||||
def version = versionFragments.size() > 0 ? versionFragments.head() : null
|
||||
def version = versionFragments?.size() > 0 ? versionFragments?.head() : null
|
||||
if(version && !config.whitesource.productVersion)
|
||||
config.whitesource.productVersion = version
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user