1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-01-18 05:18:24 +02:00

Fix version determination

This commit is contained in:
Sven Merk 2019-03-22 15:04:19 +01:00
parent 3ef908ff06
commit c269746ed3

View File

@ -413,13 +413,12 @@ private resolveProjectIdentifiers(script, descriptorUtils, config) {
break
}
if(!config.whitesource.projectName) {
if(!config.whitesource.projectName)
config.whitesource.projectName = "${gav.group?:''}${gav.group?'.':''}${gav.artifact}"
}
if (!config.whitesource.productVersion) {
config.whitesource.productVersion = gav.version?.tokenize('.')?.get(0)
}
def version = gav.version?.tokenize('.')?.head()
if(version && !config.whitesource.productVersion)
config.whitesource.productVersion = version
}
}