Menu
AWS CodeBuild
User Guide (API Version 2016-10-06)

View a List of Build IDs in AWS CodeBuild

To view a list of build IDs for builds managed by AWS CodeBuild, you can use the AWS CodeBuild console, AWS CLI, or AWS SDKs.

View a List of Build IDs (Console)

  1. Open the AWS CodeBuild console at https://console.aws.amazon.com/codebuild/.

  2. In the navigation pane, choose Build history.

    Note

    By default, only the ten most recent builds are displayed. To view more builds, select a different value for Builds per page or select the back and forward arrows for Viewing builds.

View a List of Build IDs (AWS CLI)

For more information about using the AWS CLI with AWS CodeBuild, see the Command Line Reference.

  • Run the list-builds command:

    Copy
    aws codebuild list-builds --sort-order sort-order --next-token next-token

    In the preceding command, replace the following placeholders:

    • sort-order: Optional string. How to list the build IDs. Valid values include ASCENDING and DESCENDING.

    • next-token: Optional string. During a previous run, if there were more than 100 items in the list, only the first 100 items would be returned, along with a unique string called a next token. To get the next batch of items in the list, run this command again, adding the next token to the call. To get all of the items in the list, keep running this command with each subsequent next token, until no more next tokens are returned.

    For example, if you run this command:

    Copy
    aws codebuild list-builds --sort-order ASCENDING

    A result similar to the following might appear in the output:

    Copy
    { "nextToken": "4AEA6u7J...The full token has been omitted for brevity...MzY2OA==", "ids": [ "codebuild-demo-project:815e755f-bade-4a7e-80f0-efe51EXAMPLE" "codebuild-demo-project:84a7f3d1-d40e-4956-b4cf-7a9d4EXAMPLE" ... The full list of build IDs has been omitted for brevity ... "codebuild-demo-project:931d0b72-bf6f-4040-a472-5c707EXAMPLE" ] }

    If you run this command again:

    Copy
    aws codebuild list-builds --sort-order ASCENDING --next-token 4AEA6u7J...The full token has been omitted for brevity...MzY2OA==

    A result similar to the following might appear in the output:

    Copy
    { "ids": [ "codebuild-demo-project:49015049-21cf-4b50-9708-df115EXAMPLE", "codebuild-demo-project:543e7206-68a3-46d6-a4da-759abEXAMPLE", ... The full list of build IDs has been omitted for brevity ... "codebuild-demo-project:c282f198-4582-4b38-bdc0-26f96EXAMPLE" ] }

View a List of Build IDs (AWS SDKs)

For more information about using AWS CodeBuild with the AWS SDKs, see the AWS SDKs and Tools Reference.