Skip to content

Commit c883dab

Browse files
committed
CDRIVER-3861 upload deb/rpm packages to deterministic location
1 parent fe48934 commit c883dab

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

.evergreen/config.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1725,6 +1725,15 @@ tasks:
17251725
permissions: public-read
17261726
local_file: deb.tar.gz
17271727
content_type: ${content_type|application/x-gzip}
1728+
- command: s3.put
1729+
params:
1730+
aws_key: ${aws_key}
1731+
aws_secret: ${aws_secret}
1732+
remote_file: ${project}/${branch_name}/${revision}/${version_id}/${build_id}/${execution}/mongo-c-driver-debian-packages.tar.gz
1733+
bucket: mciuploads
1734+
permissions: public-read
1735+
local_file: deb.tar.gz
1736+
content_type: ${content_type|application/x-gzip}
17281737
- name: rpm-package-build
17291738
commands:
17301739
- command: shell.exec
@@ -1745,6 +1754,15 @@ tasks:
17451754
permissions: public-read
17461755
local_file: rpm.tar.gz
17471756
content_type: ${content_type|application/x-gzip}
1757+
- command: s3.put
1758+
params:
1759+
aws_key: ${aws_key}
1760+
aws_secret: ${aws_secret}
1761+
remote_file: ${project}/${branch_name}/${revision}/${version_id}/${build_id}/${execution}/mongo-c-driver-debian-packages.tar.gz
1762+
bucket: mciuploads
1763+
permissions: public-read
1764+
local_file: rpm.tar.gz
1765+
content_type: ${content_type|application/x-gzip}
17481766
- name: install-uninstall-check-mingw
17491767
depends_on:
17501768
name: make-release-archive

build/evergreen_config_lib/tasks.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,12 +388,18 @@ def __init__(self, task_name, suffix_commands, orchestration=True, **kwargs):
388388
'sh .evergreen/debian_package_build.sh'),
389389
s3_put(local_file='deb.tar.gz',
390390
remote_file='${branch_name}/mongo-c-driver-debian-packages-${CURRENT_VERSION}.tar.gz',
391+
content_type='${content_type|application/x-gzip}'),
392+
s3_put(local_file='deb.tar.gz',
393+
remote_file='${project}/${branch_name}/${revision}/${version_id}/${build_id}/${execution}/mongo-c-driver-debian-packages.tar.gz',
391394
content_type='${content_type|application/x-gzip}')]),
392395
NamedTask('rpm-package-build',
393396
commands=[
394397
shell_mongoc('sh .evergreen/build_snapshot_rpm.sh'),
395398
s3_put(local_file='rpm.tar.gz',
396399
remote_file='${branch_name}/mongo-c-driver-rpm-packages-${CURRENT_VERSION}.tar.gz',
400+
content_type='${content_type|application/x-gzip}'),
401+
s3_put(local_file='rpm.tar.gz',
402+
remote_file='${project}/${branch_name}/${revision}/${version_id}/${build_id}/${execution}/mongo-c-driver-rpm-packages.tar.gz',
397403
content_type='${content_type|application/x-gzip}')]),
398404
NamedTask('install-uninstall-check-mingw',
399405
depends_on=OD([('name', 'make-release-archive'),

0 commit comments

Comments
 (0)