# Assumes are running using the Ubuntu 16.04:x64 image # Makes sure the version in CD has not already been released. # Will fail the build and stop the pipeline if the version has already been released. # # NOTE: This script assumes that the AWS CLI-V2 is pre-installed! # - AWS CLI-V2 is a requirement to run this script. version: 0.2 phases: build: commands: - cd $CODEBUILD_SRC_DIR/aws-iot-device-sdk-java-v2 - bash ./codebuild/cd/test-version-exists.sh $CODEBUILD_SRC_DIR/VERSION