Access Amazon CodeBuild build badges - Amazon CodeBuild
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Access Amazon CodeBuild build badges

You can use Amazon CodeBuild console or the Amazon CLI to access build badges.

  • In the CodeBuild console, in the list of build projects, in the Name column, choose the link that corresponds to the build project. On the Build project: project-name page, in Configuration, choose Copy badge URL. For more information, see View a build project's details (console).

  • In the Amazon CLI, run the batch-get-projects command. The build badge URL is included in the project environment details section of the output. For more information, see View a build project's details (Amazon CLI).

The build badge request URL is generated with a common default branch, but you can specify any branch in your source repository that you have used to run a build. For example:

https://codebuild.us-east-1.amazon.com/badges?uuid=...&branch=<branch>

You can also specify a tag from your source repository by substituting the branch parameter with the tag parameter in the badge URL. For example:

https://codebuild.us-east-1.amazon.com/badges?uuid=...&tag=<tag>