lib/cicd/builder/mixlib/repo/artifactory.rb in cicd-builder-0.9.60 vs lib/cicd/builder/mixlib/repo/artifactory.rb in cicd-builder-0.9.61
- old
+ new
@@ -311,10 +311,10 @@
@arti_search_result = []
monitor(30, 'artifact_latest_version'){
@arti_search_result = ::Artifactory::Resource::Artifact.latest_version(client: @client, group: artifactory_org_path(), name: artifact_name, repos: [repo || artifactory_repo()])
}
# noinspection RubyScope
- if @arti_search_result.size > 0
+ if @arti_search_result and @arti_search_result.size > 0
@logger.info "\tresult: #{@arti_search_result}"
end
@arti_search_result
rescue Exception => e
@logger.error "Artifactory error: #{e.class.name} #{e.message}"
\ No newline at end of file