Skip to content

Commit

Permalink
Be sure that we use a final / in S3_UPLOAD_PATH
Browse files Browse the repository at this point in the history
Signed-off-by: Jose Luis Rivero <[email protected]>
  • Loading branch information
j-rivero committed Oct 24, 2023
1 parent c2433a5 commit 55656a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion jenkins-scripts/dsl/_configs_/Globals.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ class Globals
}

static String s3_releases_dir(String package_name) {
return get_canonical_package_name(package_name) + '/releases'
return get_canonical_package_name(package_name) + '/releases/'
}

static String s3_upload_tarball_path(String package_name) {
Expand Down
2 changes: 1 addition & 1 deletion jenkins-scripts/lib/repository_uploader.bash
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ for pkg in ${S3_FILES_TO_UPLOAD}; do
fi

# Seems important to upload the path with a final slash
S3_upload "${pkgs_path}/${pkg}" "${S3_UPLOAD_PATH}"
S3_upload "${pkgs_path}/${pkg}" "${S3_UPLOAD_PATH%%*(/)}/"
done

# .bottle | brew binaries
Expand Down

0 comments on commit 55656a4

Please sign in to comment.