4

Is it possible to override AWS CodeBuild's Build Number to support a custom numbering scheme, say Semantic Versioning?

enter image description here

I know it can be done in Azure DevOps (Azure DevOps Set Build number variable in a Build Task)

Write-Host "##vso[task.setvariable variable=ProjectBuildNumber;]YourUpdateValue"

Write-Host "##vso[build.updatebuildnumber]xxx.$(ProjectBuildNumber).xxx.xxx"

Is it possible in AWS CodeBuild?

Philip Pittle
  • 11,821
  • 8
  • 59
  • 123
  • https://docs.aws.amazon.com/codebuild/latest/userguide/sample-buildspec-artifact-naming.html see this once – Avinash Dalvi Oct 22 '20 at 06:20
  • @aviboy2006 - thx for the link; but that's for naming **Artifacts**. I want to name the **Build**. Unless I'm missing something, I didn't see a way to update the Build here. This just controls file names that are saved in s3 buckets. – Philip Pittle Oct 22 '20 at 18:24

0 Answers0