Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Capture env vars from AWS Code Build #8159

Merged
merged 1 commit into from
Aug 3, 2020
Merged

Conversation

jennifer-shehane
Copy link
Member

@jennifer-shehane jennifer-shehane commented Aug 3, 2020

User Changelog

  • We now collect environment variables for AWS CodeBuild when recording to the Dashboard.

Additional Details

AWS CodeBuild env vars: https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-env-vars.html

PR Tasks

@cypress-bot
Copy link
Contributor

cypress-bot bot commented Aug 3, 2020

Thanks for taking the time to open a PR!

@jennifer-shehane jennifer-shehane changed the title Capture env vars from AWS Code Build fix: Capture env vars from AWS Code Build Aug 3, 2020
@cypress
Copy link

cypress bot commented Aug 3, 2020



Test summary

7923 0 130 2


Run details

Project cypress
Status Passed
Commit b1859a7
Started Aug 3, 2020 8:16 AM
Ended Aug 3, 2020 8:22 AM
Duration 06:06 💡
OS Linux Debian - 10.1
Browser Multiple

View run in Cypress Dashboard ➡️


This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

@@ -82,6 +88,7 @@ const isWercker = () => {
const CI_PROVIDERS = {
'appveyor': 'APPVEYOR',
'azure': isAzureCi,
'awsCodeBuild': isAWSCodeBuild,
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
'awsCodeBuild': isAWSCodeBuild,
'awsCodeBuild': 'CODEBUILD_BUILD_ID',

we can simply check for this environment variable, why is isAWSCodeBuild necessary?

Copy link
Member Author

Choose a reason for hiding this comment

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

Just figure it covers more env vars if they ever change the CODEBUILD_BUILD_ID var

Copy link
Contributor

@bahmutov bahmutov left a comment

Choose a reason for hiding this comment

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

I will approve this PR, but see my note about isAWSCodeBuild function - it is unnecessary, we should just check a single variable.

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.

Detect and capture env vars from AWS CodeBuild including ciBuildId
2 participants