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:
parent
3ef908ff06
commit
c269746ed3
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user