lib/cicd/builder/manifest/mixlib/repo/artifactory.rb in manifest-builder-0.5.1 vs lib/cicd/builder/manifest/mixlib/repo/artifactory.rb in manifest-builder-0.5.2
- old
+ new
@@ -40,14 +40,16 @@
@vars[:return_code]
end
# ---------------------------------------------------------------------------------------------------------------
def createProjectsFile
+ @logger.info __method__.to_s
projects = {}
project_names = {}
unless ENV['PROJECT_NAMES'].nil?
if File.exists?(ENV['PROJECT_NAMES'])
+ @logger.info "Load PROJECT_NAMES: #{ENV['PROJECT_NAMES']}"
project_names = JSON.load(IO.read(ENV['PROJECT_NAMES']))
else
@logger.error "The PROJECT_NAMES file (#{ENV['PROJECT_NAMES']}) does not exist!"
@vars[:return_code] = Errors::NO_PROJECT_NAMES
end
@@ -61,9 +63,10 @@
ext: exts[prod],
class_filter: '',
}
end
end
+ @logger.info "Save PROJECTS_FILE: #{ENV['PROJECTS_FILE']}"
IO.write(ENV['PROJECTS_FILE'], JSON.pretty_generate(projects, {indent: "\t", space: ' '}))
end
def createSuperManifest(manifest)
manifest_data = ''