gregn
gregn

Reputation: 1330

AWS CodeBuild pipeline CodeCommit git repo path

If I configure a CodeBuild pipleline as using the CodeCommit Source provider, what is the path of the source code (git repo) to refer to in the buildspec.yml commands?

Upvotes: 0

Views: 270

Answers (1)

Subin Mathew
Subin Mathew

Reputation: 2545

Use the predefined environment variable "CODEBUILD_SRC_DIR". Details: https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-env-vars.html

Upvotes: 1

Related Questions