Skip to content

Commit ced6b1f

Browse files
authored
CLOUDP-315273: Onboard Papertrail (#3899)
1 parent 7d2dbe7 commit ced6b1f

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

build/ci/release.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,38 @@ functions:
182182
- package_name
183183
- meta_package_name
184184
binary: build/package/rename-pkg.sh
185+
"trace artifacts":
186+
- command: shell.exec
187+
params:
188+
include_expansions_in_env:
189+
- unstable
190+
script: |
191+
# Get unstable to determine product name
192+
if [[ "${unstable:-}" == "-unstable" ]]; then
193+
product="atlascli-snapshot"
194+
else
195+
product="atlascli"
196+
fi
197+
198+
cat <<EOT > expansions.yaml
199+
product: "$product"
200+
EOT
201+
- command: expansions.update
202+
params:
203+
ignore_missing_file: true
204+
file: src/github.com/mongodb/mongodb-atlas-cli/expansions.yaml
205+
- command: papertrail.trace
206+
params:
207+
key_id: ${papertrail_key_id}
208+
secret_key: ${papertrail_secret_key}
209+
product: ${product}
210+
version: ${version}
211+
filenames:
212+
- "src/github.com/mongodb/mongodb-atlas-cli/dist/*.tar.gz"
213+
- "src/github.com/mongodb/mongodb-atlas-cli/dist/*.zip"
214+
- "src/github.com/mongodb/mongodb-atlas-cli/dist/*.deb"
215+
- "src/github.com/mongodb/mongodb-atlas-cli/dist/*.rpm"
216+
- "src/github.com/mongodb/mongodb-atlas-cli/dist/*.msi"
185217
"send slack notification":
186218
- command: subprocess.exec
187219
type: test
@@ -482,6 +514,7 @@ tasks:
482514
permissions: private
483515
content_type: ${content_type|application/x-gzip}
484516
display_name: downloads-center-new-
517+
- func: "trace artifacts"
485518
- func: "send slack notification"
486519
- name: push_atlascli_generate
487520
patchable: false

0 commit comments

Comments
 (0)