Skip to content

Commit dc8bcc5

Browse files
committed
maybe fix package URL
1 parent 610561e commit dc8bcc5

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

.evergreen/config.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,12 @@ functions:
302302
curl -L -O http://boxes.10gen.com/build/curator/curator-dist-rhel70-$CURATOR_RELEASE.tar.gz
303303
tar -zxvf curator-dist-rhel70-$CURATOR_RELEASE.tar.gz
304304
./curator version
305-
./curator repo submit --config etc/repo_config.yaml --distro ${packager_distro} --edition org --version $pkg_version --arch ${packager_arch} --service https://barque.corp.mongodb.com/ --packages https://mciuploads.s3.amazonaws.com/${project}/${build_variant}/${branch_name}/${libmongocrypt_s3_suffix}/libmongocrypt-distro-packages.tar.gz
305+
if "${project}" = 'libmongocrypt-release'; then
306+
package_url_prefix="https://downloads.mongodb.org"
307+
else
308+
package_url_prefix="https://mciuploads.s3.amazonaws.com"
309+
fi
310+
./curator repo submit --config etc/repo_config.yaml --distro ${packager_distro} --edition org --version $pkg_version --arch ${packager_arch} --service https://barque.corp.mongodb.com/ --packages $package_url_prefix/${project}/${build_variant}/${branch_name}/${libmongocrypt_s3_suffix}/libmongocrypt-distro-packages.tar.gz
306311
307312
"build python release":
308313
- command: shell.exec
@@ -322,8 +327,6 @@ functions:
322327
- "*"
323328
- command: s3.put
324329
params:
325-
# The upload of this component uses the less restricted bucket because it is only
326-
# used for transferring temporary files until they are later merged in the next build step
327330
role_arn: ${upload_arn}
328331
local_file: release-files.tgz
329332
remote_file: '${project}/python-release/${branch_name}/${libmongocrypt_s3_suffix}/${task_id}-${execution}-release-files.tar.gz'

0 commit comments

Comments
 (0)