From e4e24ab9214a45105a9238c4d75583c94fae9897 Mon Sep 17 00:00:00 2001 From: Kaixiang-AWS Date: Tue, 14 May 2019 07:47:24 -0700 Subject: [PATCH] feat(codebuild): rename standard 1.0 image and add standard 2.0 image (#2541) Fixes #2306 --- packages/@aws-cdk/aws-codebuild/lib/project.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/@aws-cdk/aws-codebuild/lib/project.ts b/packages/@aws-cdk/aws-codebuild/lib/project.ts index 0c09011bde2dc..1707887f6b995 100644 --- a/packages/@aws-cdk/aws-codebuild/lib/project.ts +++ b/packages/@aws-cdk/aws-codebuild/lib/project.ts @@ -629,7 +629,7 @@ export class Project extends ProjectBase { props.cacheBucket.grantReadWrite(this.role); } - this.buildImage = (props.environment && props.environment.buildImage) || LinuxBuildImage.UBUNTU_18_04_STANDARD_1_0; + this.buildImage = (props.environment && props.environment.buildImage) || LinuxBuildImage.STANDARD_1_0; // let source "bind" to the project. this usually involves granting permissions // for the code build role to interact with the source. @@ -951,7 +951,7 @@ export interface BuildEnvironment { /** * The image used for the builds. * - * @default LinuxBuildImage.UBUNTU_18_04_STANDARD_1_0 + * @default LinuxBuildImage.STANDARD_1_0 */ readonly buildImage?: IBuildImage; @@ -1033,7 +1033,8 @@ export interface IBuildImage { * @see https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-available.html */ export class LinuxBuildImage implements IBuildImage { - public static readonly UBUNTU_18_04_STANDARD_1_0 = new LinuxBuildImage('aws/codebuild/standard:1.0'); + public static readonly STANDARD_1_0 = new LinuxBuildImage('aws/codebuild/standard:1.0'); + public static readonly STANDARD_2_0 = new LinuxBuildImage('aws/codebuild/standard:2.0'); public static readonly UBUNTU_14_04_BASE = new LinuxBuildImage('aws/codebuild/ubuntu-base:14.04'); public static readonly UBUNTU_14_04_ANDROID_JAVA8_24_4_1 = new LinuxBuildImage('aws/codebuild/android-java-8:24.4.1'); public static readonly UBUNTU_14_04_ANDROID_JAVA8_26_1_1 = new LinuxBuildImage('aws/codebuild/android-java-8:26.1.1');