lib/cicd/builder/manifest/mixlib/repo/artifactory.rb in manifest-builder-0.6.4 vs lib/cicd/builder/manifest/mixlib/repo/artifactory.rb in manifest-builder-0.6.5
- old
+ new
@@ -56,10 +56,10 @@
def createProjectsFile
@logger.info __method__.to_s
projects = {}
project_names = loadProjectNames()
exts = {}
- exts = Hash[@vars[:artifacts].map { |a| [a[:data][:name], File.basename(a[:data][:file]).match(CiCd::Builder::Manifest::Build::EXT_RGX)[1]] }]
+ exts = Hash[@vars[:artifacts].map { |a| [a[:data][:name], a[:data][:file_ext] || File.basename(a[:data][:file]).match(CiCd::Builder::Manifest::Build::EXT_RGX)[1]] }]
createClassesFile()
@vars[:artifacts].each do |art|
prod = art[:data][:name]