Aws Codebuild Extras Save

Add extra information of your AWS CodeBuild build via environment variables.

Project README

aws-codebuild-extras Build Status

Adds extra information of your AWS CodeBuild build via environment variables.

Usage

Add the following command to the install or pre_build phase of your buildspec, and replace <A_COMMIT_HASH> by the lastest commit hash (or your preferred revision):

curl -fsSL https://raw.githubusercontent.com/thii/aws-codebuild-extras/<A_COMMIT_HASH>/install >> extras.sh && . ./extras.sh

Alternatively, you can fork this repo and always point to the default branch of your fork.

You can also break the installation into two steps to improve readability. For example in the install phase:

phases:
  install:
    commands:
      - echo Installing codebuild-extras...
      - curl -fsSL https://raw.githubusercontent.com/thii/aws-codebuild-extras/<A_COMMIT_HASH>/install >> extras.sh
      - . ./extras.sh
NAME VALUE
CI true
CODEBUILD true
CODEBUILD_GIT_AUTHOR Committer Name
CODEBUILD_GIT_AUTHOR_EMAIL [email protected]
CODEBUILD_GIT_BRANCH branch name
CODEBUILD_GIT_COMMIT commit hash
CODEBUILD_GIT_MESSAGE commit message
CODEBUILD_GIT_TAG git tag
CODEBUILD_PROJECT project
CODEBUILD_PULL_REQUEST Pull request number
Open Source Agenda is not affiliated with "Aws Codebuild Extras" Project. README Source: thii/aws-codebuild-extras
Stars
146
Open Issues
7
Last Commit
3 years ago

Open Source Agenda Badge

Open Source Agenda Rating