Stanislav Ivanov
Stanislav Ivanov

Reputation: 443

AWS CodeBuild - How to use one and the same buildspec.yml for multiple projects?

We have the following GitHub projects setting (Maven, Java):

Project000 Project001 ..

They should use exactly the same buildspec.yml and we do not place it in every object. However, in CodeBuild we should copy/paste directly in the project build or have it as a file in all the projects. Is there a way to point to a single file i.e called buildspec.yml and stored in S3?

Upvotes: 0

Views: 689

Answers (1)

Creeper123
Creeper123

Reputation: 113

Hello Stanislav Ivanov,

AWSCodeBuild just came out with a new feature where you can override everything in a project. Using this feature you could have 1 base project which includes your buildspec, then override the source depending on what you would like to build.

Let me know if that helps, John

Upvotes: 2

Related Questions