Skip to content

CI: Really skip uploading artifacts to S3#133

Merged
aminya merged 1 commit intomasterfrom
patch-to-really-skip-uploading-assets-to-s3
Sep 5, 2020
Merged

CI: Really skip uploading artifacts to S3#133
aminya merged 1 commit intomasterfrom
patch-to-really-skip-uploading-assets-to-s3

Conversation

@DeeDeeG
Copy link
Copy Markdown
Member

@DeeDeeG DeeDeeG commented Sep 5, 2020

Identify the Bug

#1 (comment), follow-up to: #66, which was re-worked and landed as #99.

Description of the Change

Fix a spot where we missed using the re-mapped S3 and PackageCloud env vars.

(For the condition where IsSignedZipBranch is true, we were still using the un-re-mapped variables. That would cause them to always be set to not-very-useful $(VAR_NAME_HERE) values. That oversight defeated our skipping mechanism. This patch makes skipping uploads to S3 and PackageCloud work properly again.)

Alternate Designs

None.

Possible Drawbacks

None.

Verification Process

See this passing CI run to confirm that it worked: https://dev.azure.com/atomcommunity/atomcommunity/_build/results?buildId=738&view=logs&j=fc7b8a14-4c68-54ee-1e90-04bf630ba360&t=9ad4a9bf-2116-54e4-db45-9da1e971fb4f

Environment variables "ATOM_RELEASES_S3_BUCKET", "ATOM_RELEASES_S3_KEY" and/or "ATOM_RELEASES_S3_SECRET" are not set, skipping S3 upload.

No Linux package repo name specified, skipping Linux package upload.
Skipping GitHub release creation

Finishing: Upload CI Artifacts to S3

Release Notes

N/A

On the "release-branch-build.yml" pipeline, in the "IsSignedZipBranch"
condition, we were not passing the re-mapped env variables.

This patch fixes the `env:` block to send the re-mapped env vars,
as was intended. This fixes an oversight in the previous PR.
@DeeDeeG
Copy link
Copy Markdown
Member Author

DeeDeeG commented Sep 5, 2020

This is working. I'm happy to merge it some time soon, but take a look if you want @aminya.

Copy link
Copy Markdown
Member

@aminya aminya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you

@aminya aminya merged commit 3af7ba1 into master Sep 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants