'BranchName' and 'CommitId' variables - Amazon CodeCatalyst

'BranchName' and 'CommitId' variables

The CodeCatalyst source produces and sets BranchName and CommitId variables when your workflow runs. These are known as predefined variables. See the following table for information about these variables.

For information about referencing these variables in a workflow, see Using predefined variables.

Key Value

CommitId

The commit ID representing the state of the repository at the time the workflow run started.

Example: example3819261db00a3ab59468c8b

See also: Example: Referencing the "CommitId" predefined variable

BranchName

The name of the branch against which the workflow run started.

Examples: main, feature/branch, test-LiJuan

See also: Example: Referencing the "BranchName" predefined variable