Skip to content

Commit 16b39d2

Browse files
authored
feat: Add environment variables for AWS CodeBuild CI. (#88)
1 parent c7488f0 commit 16b39d2

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed

CHANGES.rst

+7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
Release Notes
22
-------------
33

4+
3.1.1 (2024-02-08)
5+
------------------
6+
7+
* Add environment variables for AWS CodeBuild CI.
8+
9+
* Thanks to `@dougch <https://github.com/dougch>`_ for the PR.
10+
411
3.1.0 (2024-02-01)
512
------------------
613

src/pytest_metadata/ci/codebuild.py

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# This Source Code Form is subject to the terms of the Mozilla Public
2+
# License, v. 2.0. If a copy of the MPL was not distributed with this
3+
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
4+
5+
# Based on https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-env-vars.html
6+
7+
ENVIRONMENT_VARIABLES = [
8+
"AWS_REGION",
9+
"CODEBUILD_BUILD_ID",
10+
"CODEBUILD_BUILD_NUMBER",
11+
"CODEBUILD_RESOLVED_SOURCE_VERSION",
12+
"CODEBUILD_SOURCE_REPO_URL",
13+
"CODEBUILD_SOURCE_VERSION",
14+
]

src/pytest_metadata/plugin.py

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
appveyor,
1616
bitbucket,
1717
circleci,
18+
codebuild,
1819
gitlab_ci,
1920
jenkins,
2021
taskcluster,
@@ -25,6 +26,7 @@
2526
appveyor.ENVIRONMENT_VARIABLES,
2627
bitbucket.ENVIRONMENT_VARIABLES,
2728
circleci.ENVIRONMENT_VARIABLES,
29+
codebuild.ENVIRONMENT_VARIABLES,
2830
gitlab_ci.ENVIRONMENT_VARIABLES,
2931
jenkins.ENVIRONMENT_VARIABLES,
3032
taskcluster.ENVIRONMENT_VARIABLES,

0 commit comments

Comments
 (0)