This repository has been archived by the owner on Apr 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 139
Agnostic support for CI systems #68
Comments
Hey! I'll be adding these patterns below if no CI provider is found commit="$VCS_COMMIT_ID"
branch="$VCS_BRANCH_NAME"
build_url="$VCS_BRANCH_URL"
build="$VCS_BUILD_ID"
pr="$VCS_PULL_REQUEST"
slug="$VCS_SLUG"
|
stevepeak
added a commit
to codecov/codecov-bash
that referenced
this issue
Jul 10, 2016
stevepeak
added a commit
that referenced
this issue
Jul 10, 2016
I think that instead of
we should have
as these variables are related to the CI system and not with the VCS |
Good point :) I agree with that 👍 I'll adjust accordingly |
stevepeak
added a commit
to codecov/codecov-bash
that referenced
this issue
Jul 10, 2016
stevepeak
added a commit
that referenced
this issue
Jul 10, 2016
This is solved? |
Short answer: Yes, in the bash uploader, when on CI provider is discovered. Taking another look at it and I think we need to always collect these details, by default, regardless or CI detection. |
It looks like there were commits in the python uploader as well. Is that work in the python uploader not complete? |
I'll take a look at the python uploader too. Thank you |
This has been solved via 2f3d3ab |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
This is a follow up for buildbot/buildbot#1671
I see the code from https://github.com/codecov/codecov-python/blob/master/codecov/__init__.py#L260-L430 is trying to hunt each CI system and extract the required information .
I don't see any generic lookup for those environment variables ... other than the token.
Those variables should also be VCS agnostic ... but for now this is of lower priority, since only GitHub/GitLab and Bitbucket are supported anyway.
The goal is to allow sending reports from Buildbot or other CI system without requiring to update codecov-python for each new CI system.
For my project I am using this environment in Buildbot https://github.com/chevah/buildbot-configuration-builder/blob/master/chevah/buildbot_configuration_builder/builder.py#L859
As agnostic environment variables I suggest:
commit -> VCS_COMMIT_ID
branch -> VCS_BRANCH_NAME
branch_url -> VCS_BRANCH_URL
build -> VCS_BUILD_ID
build_url -> VCS_BUILD_URL
pr -> GITHUB_PR_ID | GITLAB_PR_ID
slug -> GITHUB_SLUG | GITLAB_SLUG
any CI system should set
CI=true
and maybe 'CI_NAME=service`The text was updated successfully, but these errors were encountered: