Skip to content

Commit

Permalink
RHELMISC-7213: Fix share folder handle_exceptions
Browse files Browse the repository at this point in the history
Signed-off-by: Vitalii Chulak <[email protected]>
  • Loading branch information
Jedoku committed Feb 4, 2025
1 parent 217a660 commit 431c478
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/resultuploaders/dropbox/dropbox.rb
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,14 @@ def connect
end

def create_project_folder
@path = "/#{@repo}/CI/#{@tag}-#{@timestamp}"
handle_exceptions(__method__) { @dropbox.create_folder(@path) }
handle_exceptions(__method__) do
@path = "/#{@repo}/CI/#{@tag}-#{@timestamp}"
@dropbox.create_folder(@path)
@dropbox.share_folder(@path)
@url = "#{@dropbox.create_shared_link_with_settings(@path).url}&lst="
@logger.info("Dropbox project folder created: #{@url}")
end

@logger.info("Dropbox project folder created: #{@url}")
end

def upload_file(l_path, r_name)
Expand Down

0 comments on commit 431c478

Please sign in to comment.