Skip to content

Commit c34aa92

Browse files
mrcljxuntitaker
andauthored
Add CircleCI env vars (#26)
Co-authored-by: Markus Unterwaditzer <[email protected]>
1 parent 8c9f937 commit c34aa92

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

pytest_sentry.py

+19
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,25 @@
3737
"CI_PROJECT_PATH",
3838
"CI_SERVER_URL",
3939
"GITLAB_USER_NAME", # The name of the user who started the job.
40+
# CircleCI variables, as defined here https://circleci.com/docs/variables/#built-in-environment-variables
41+
"CIRCLE_BRANCH", # The name of the Git branch currently being built.
42+
"CIRCLE_BUILD_NUM", # The number of the current job. Job numbers are unique for each job.
43+
"CIRCLE_BUILD_URL", # The URL for the current job on CircleCI.
44+
"CIRCLE_JOB", # The name of the current job.
45+
"CIRCLE_NODE_INDEX", # For jobs that run with parallelism enabled, this is the index of the current parallel run.
46+
"CIRCLE_PR_NUMBER", # The number of the associated GitHub or Bitbucket pull request.
47+
"CIRCLE_PR_REPONAME", # The name of the GitHub or Bitbucket repository where the pull request was created.
48+
"CIRCLE_PR_USERNAME", # The GitHub or Bitbucket username of the user who created the pull request.
49+
"CIRCLE_PROJECT_REPONAME", # The name of the repository of the current project.
50+
"CIRCLE_PROJECT_USERNAME", # The GitHub or Bitbucket username of the current project.
51+
"CIRCLE_PULL_REQUEST", # The URL of the associated pull request.
52+
"CIRCLE_REPOSITORY_URL", # The URL of your GitHub or Bitbucket repository.
53+
"CIRCLE_SHA1", # The SHA1 hash of the last commit of the current build.
54+
"CIRCLE_TAG", # The name of the git tag, if the current build is tagged.
55+
"CIRCLE_USERNAME", # The GitHub or Bitbucket username of the user who triggered the pipeline.
56+
"CIRCLE_WORKFLOW_ID", # A unique identifier for the workflow instance of the current job.
57+
"CIRCLE_WORKFLOW_JOB_ID", # A unique identifier for the current job.
58+
"CIRCLE_WORKFLOW_WORKSPACE_ID", # An identifier for the workspace of the current job.
4059
]
4160
)
4261

0 commit comments

Comments
 (0)