lib/cicd/builder/mixlib/repo/S3.rb in cicd-builder-0.9.63 vs lib/cicd/builder/mixlib/repo/S3.rb in cicd-builder-0.9.64

- old
+ new

@@ -232,10 +232,11 @@ 'build_name' => args['build_name'], 'build_number' => args['build_number'], 'release' => args['release'], } if args['artifacts'] - filing['artifacts'] = args['artifacts'].map { |artifact| File.basename(artifact[:key]) } + # filing['artifacts'] = args['artifacts'].map { |artifact| File.basename(artifact[:key]) } + filing['artifacts'] = args['artifacts'].map { |artifact| artifact[:key].gsub(%r|^.*#{args['drawer']}/|, '') } end assembly = json['container']['assembly'] or raise("Expected an 'assembly'") if assembly['extension'] != args['build_ext'] filing['assembly'] = { 'extension' => args['build_ext'], \ No newline at end of file