lib/cicd/builder/mixlib/repo.rb in cicd-builder-0.9.19 vs lib/cicd/builder/mixlib/repo.rb in cicd-builder-0.9.20

- old
+ new

@@ -247,10 +247,13 @@ 'drawer' => @vars[:build_nam], 'build_name' => @vars[:build_rel], 'build_number' => @vars[:build_num], 'release' => @vars[:release], } + if @vars.has_key?(:artifacts) + filing['artifacts'] = @vars[:artifacts].map { |artifact| File.basename(artifact[:key]) } + end assembly = json['container']['assembly'] or raise("Expected an 'assembly'") if assembly['extension'] != !vars[:build_ext] # noinspection RubyStringKeysInHashInspection filing['assembly'] = { 'extension' => @vars[:build_ext], @@ -340,10 +343,10 @@ def uploadBuildArtifacts() if @vars.has_key?(:build_dir) and @vars.has_key?(:build_pkg) begin if File.exists?(@vars[:build_pkg]) - artifacts = [] + artifacts = @vars[:artifacts] rescue [] key = "#{@vars[:project_name]}/#{@vars[:variant]}/#{@vars[:build_nam]}/#{@vars[:build_rel]}" # Store the assembly - be sure to inherit possible overrides in pkg name and ext but dictate the drawer! artifacts << { key: "#{File.join(File.dirname(key),File.basename(@vars[:build_pkg]))}", \ No newline at end of file