be more precise with upload success message
This commit is contained in:
parent
f47835fb8d
commit
32719ff957
3 changed files with 3 additions and 2 deletions
|
|
@ -6,7 +6,7 @@ skip_clone: true
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- PLATFORM: rhel-9
|
- PLATFORM: rhel-9
|
||||||
BLOCK: 903:1450
|
BLOCK: 920:1450
|
||||||
# - PLATFORM: rhel-9
|
# - PLATFORM: rhel-9
|
||||||
# BLOCK: 1051:1450
|
# BLOCK: 1051:1450
|
||||||
# - PLATFORM: rhel-9
|
# - PLATFORM: rhel-9
|
||||||
|
|
|
||||||
|
|
@ -123,7 +123,6 @@ build_binary_package <- function(package_name, tag = NULL, codename = NULL,
|
||||||
{
|
{
|
||||||
p()
|
p()
|
||||||
dump <- upload_single_binary_to_s3(package_name = x, tag = y, force = force, build_for_minor = build_for_minor, debug = debug)
|
dump <- upload_single_binary_to_s3(package_name = x, tag = y, force = force, build_for_minor = build_for_minor, debug = debug)
|
||||||
cli::cli_alert_success("Successfully uploaded package {.pkg {x}} with tag {.field {y}}.")
|
|
||||||
},
|
},
|
||||||
error = function(e) {
|
error = function(e) {
|
||||||
message(sprintf("Error in uploading package %s with tag %s: %s", x, y, e))
|
message(sprintf("Error in uploading package %s with tag %s: %s", x, y, e))
|
||||||
|
|
|
||||||
|
|
@ -46,6 +46,7 @@ upload_single_binary_to_s3 <- function(
|
||||||
sprintf("%s/%s", local_bin_path, tarball_name),
|
sprintf("%s/%s", local_bin_path, tarball_name),
|
||||||
sprintf("%s/%s", remote_bin_path, tarball_name)
|
sprintf("%s/%s", remote_bin_path, tarball_name)
|
||||||
)
|
)
|
||||||
|
cli::cli_alert_success("Successfully uploaded package {.pkg {x}} with tag {.field {y}}.")
|
||||||
cli::cli_alert("{.fun upload_single_binary_to_s3}: Deleting binary for {.pkg {package_name}} {.field {tag}} at path {.path {sprintf('%s/%s', local_bin_path, tarball_name)}}.")
|
cli::cli_alert("{.fun upload_single_binary_to_s3}: Deleting binary for {.pkg {package_name}} {.field {tag}} at path {.path {sprintf('%s/%s', local_bin_path, tarball_name)}}.")
|
||||||
file.remove(sprintf("%s/%s", local_bin_path, tarball_name))
|
file.remove(sprintf("%s/%s", local_bin_path, tarball_name))
|
||||||
} else if (exists && force) {
|
} else if (exists && force) {
|
||||||
|
|
@ -55,6 +56,7 @@ upload_single_binary_to_s3 <- function(
|
||||||
sprintf("%s/%s", remote_bin_path, tarball_name),
|
sprintf("%s/%s", remote_bin_path, tarball_name),
|
||||||
overwrite = TRUE
|
overwrite = TRUE
|
||||||
)
|
)
|
||||||
|
cli::cli_alert_success("Successfully uploaded package {.pkg {x}} with tag {.field {y}}.")
|
||||||
cli::cli_alert("{.fun upload_single_binary_to_s3}: Deleting binary for {.pkg {package_name}} {.field {tag}} at path {.path {sprintf('%s/%s', local_bin_path, tarball_name)}}.")
|
cli::cli_alert("{.fun upload_single_binary_to_s3}: Deleting binary for {.pkg {package_name}} {.field {tag}} at path {.path {sprintf('%s/%s', local_bin_path, tarball_name)}}.")
|
||||||
file.remove(sprintf("%s/%s", local_bin_path, tarball_name))
|
file.remove(sprintf("%s/%s", local_bin_path, tarball_name))
|
||||||
} else if (exists && !force) {
|
} else if (exists && !force) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue