Skip to content

Commit 84169c9

Browse files
committed
CDRIVER-3861 upload deb/rpm packages to deterministic location
1 parent daeb8dc commit 84169c9

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
@@ -1621,6 +1621,15 @@ tasks:
16211621
permissions: public-read
16221622
local_file: deb.tar.gz
16231623
content_type: ${content_type|application/x-gzip}
1624+
- command: s3.put
1625+
params:
1626+
aws_key: ${aws_key}
1627+
aws_secret: ${aws_secret}
1628+
remote_file: ${project}/${branch_name}/${revision}/${version_id}/${build_id}/${execution}/mongo-c-driver-debian-packages.tar.gz
1629+
bucket: mciuploads
1630+
permissions: public-read
1631+
local_file: deb.tar.gz
1632+
content_type: ${content_type|application/x-gzip}
16241633
- name: rpm-package-build
16251634
commands:
16261635
- command: shell.exec
@@ -1641,6 +1650,15 @@ tasks:
16411650
permissions: public-read
16421651
local_file: rpm.tar.gz
16431652
content_type: ${content_type|application/x-gzip}
1653+
- command: s3.put
1654+
params:
1655+
aws_key: ${aws_key}
1656+
aws_secret: ${aws_secret}
1657+
remote_file: ${project}/${branch_name}/${revision}/${version_id}/${build_id}/${execution}/mongo-c-driver-debian-packages.tar.gz
1658+
bucket: mciuploads
1659+
permissions: public-read
1660+
local_file: rpm.tar.gz
1661+
content_type: ${content_type|application/x-gzip}
16441662
- name: install-uninstall-check-mingw
16451663
depends_on:
16461664
name: make-release-archive

build/evergreen_config_lib/tasks.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,12 +376,18 @@ def __init__(self, task_name, suffix_commands, orchestration=True, **kwargs):
376376
'sh .evergreen/debian_package_build.sh'),
377377
s3_put(local_file='deb.tar.gz',
378378
remote_file='${branch_name}/mongo-c-driver-debian-packages-${CURRENT_VERSION}.tar.gz',
379+
content_type='${content_type|application/x-gzip}'),
380+
s3_put(local_file='deb.tar.gz',
381+
remote_file='${project}/${branch_name}/${revision}/${version_id}/${build_id}/${execution}/mongo-c-driver-debian-packages.tar.gz',
379382
content_type='${content_type|application/x-gzip}')]),
380383
NamedTask('rpm-package-build',
381384
commands=[
382385
shell_mongoc('sh .evergreen/build_snapshot_rpm.sh'),
383386
s3_put(local_file='rpm.tar.gz',
384387
remote_file='${branch_name}/mongo-c-driver-rpm-packages-${CURRENT_VERSION}.tar.gz',
388+
content_type='${content_type|application/x-gzip}'),
389+
s3_put(local_file='rpm.tar.gz',
390+
remote_file='${project}/${branch_name}/${revision}/${version_id}/${build_id}/${execution}/mongo-c-driver-rpm-packages.tar.gz',
385391
content_type='${content_type|application/x-gzip}')]),
386392
NamedTask('install-uninstall-check-mingw',
387393
depends_on=OD([('name', 'make-release-archive'),

0 commit comments

Comments
 (0)