lib/cicd/builder/mixlib/repo/artifactory.rb in cicd-builder-0.9.37 vs lib/cicd/builder/mixlib/repo/artifactory.rb in cicd-builder-0.9.38
- old
+ new
@@ -109,9 +109,10 @@
file_ext = file_name.dup
file_ext.gsub!(%r'^.*?\.*(tar\.gz|tgz|tar\.bzip2|bzip2|tar\.bz2|bz2|zip|jar|war|groovy)$', '\1')
unless file_ext.empty?
file_name.gsub!(%r'\.*#{file_ext}$', '')
end
+ file_name.gsub!(%r'(\.\d+)+$', '')
return file_name, file_ext
end
# ---------------------------------------------------------------------------------------------------------------
def maybeUploadArtifactoryObject(args)
\ No newline at end of file