[ci] Use proper file extension tar.gz for regression report upload

This commit is contained in:
Andreas Dangel
2021-06-24 08:53:27 +02:00
parent 1c40424b74
commit d24b367ae4

View File

@ -30,7 +30,7 @@ end
def upload_report
Dir.chdir('target/reports') do
tar_filename = "pr-#{ENV['PMD_CI_PULL_REQUEST_NUMBER']}-diff-report-#{Time.now.strftime("%Y-%m-%dT%H-%M-%SZ")}.tar"
tar_filename = "pr-#{ENV['PMD_CI_PULL_REQUEST_NUMBER']}-diff-report-#{Time.now.strftime("%Y-%m-%dT%H-%M-%SZ")}.tar.gz"
unless Dir.exist?('diff/')
message("No java rules are changed!", sticky: true)
return