Questions tagged [aws-codebuild]

Describes Amazon Web Services CodeBuild questions and answers. Scope should be limited to AWS CodeBuild.

AWS CodeBuild is a fully managed build service that compiles source code, runs tests, and produces software packages that are ready to deploy. With CodeBuild, you don’t need to provision, manage, and scale your own build servers. CodeBuild scales continuously and processes multiple builds concurrently, so your builds are not left waiting in a queue. You can get started quickly by using prepackaged build environments, or you can create custom build environments that use your own build tools. With CodeBuild, you are charged by the minute for the compute resources you use.

Documentation

1448 questions
0
votes
1 answer

Is there a way to upgrade nodejs 10 in an AWS CodeBuild managed image?

I need nodejs runtime in AWS CodeBuild. I have tried substituting the v10.16.0 which comes packaged with codebuild with v11.14.0 but when I check node -v output it still shows as 10.16.0. Can anyone help me fix this ? TIA.
ZeroGraviti
  • 1,047
  • 2
  • 12
  • 28
0
votes
1 answer

AWS CodeBuild errors out on PRE_BUILD step

I am getting the following error when using an AWS managed image for Windows :- [Container] 2019/09/13 14:48:54 Command did not exit successfully aws s3 cp --recursive s3://unique-bucket-name/folder/ C:\temp\folder exit status 1 [Container]…
ZeroGraviti
  • 1,047
  • 2
  • 12
  • 28
0
votes
1 answer

CodeBuild to wait Cloudformation

I have a CodePipeline (that has CodeCommit source stage and then CodeBuild stage that compiles and then runs AWS CDK deploy). I want this pipeline to trigger on each commit to master, which it does. But the problem is that if the previous deploy…
vertti
  • 7,539
  • 4
  • 51
  • 81
0
votes
1 answer

How to Pass Environment Variable defined in Buildspec to Groovy Script as Argument In Build Phase

I am Calling Groovy file In Build Command of the buildspec.yml and Would Like to Initialize An Variable in the Groovy script with An Environment Variable defined in Buildspec. How to get the Argument and initialize Variable with the Argument inside…
0
votes
2 answers

How to Pass AWS credentials to docker compose network in Codebuild

I am running a docker compose network on AWS CodeBuild and I need to pass AWS credentials (AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY) to the docker containers as they need to interact with AWS SSM. What is the best way to get these credentials…
mohamed
  • 75
  • 11
0
votes
0 answers

AWS Local CodeBuild Support in PowerShell outputs to Command Prompt

I've been following the instructions for testing AWS CodeBuild locally which has been fine until I run the codebuild_build.sh script in PowerShell. This is an example of what the command looks like: .\codebuild_build.sh -i dockerimage -a…
Ayb4btu
  • 3,208
  • 5
  • 30
  • 42
0
votes
1 answer

AWS CodeCommit trigger 2 different project

I want to build a trigger or any other way in order that for every change I make in one of the repos in CodeCommit 2 different jobs will be triggered. Let's say I have repo A,B,C - whenever a change happen on A, I only want to build B, C. A is like…
Mickey Hovel
  • 982
  • 1
  • 15
  • 31
0
votes
0 answers

How to fix 'unable to find valid certification path to requested target' when connecting codebuild to jenkins master

I’m trying to use the Jenkins-codebuilder-plugin: https://github.com/lsegal/jenkins-codebuilder-plugin I’ve followed the readme steps but having some trouble with TLS/SSL connection between code build and the Jenkins master. I'm using a self-signed…
Rod McCutcheon
  • 201
  • 4
  • 21
0
votes
2 answers

CodeBuild set No VPC using aws codebuild cli

How can I set No VPC using aws codebuild cli? I tried using: aws codebuild update-project \ --name \ --vpc-config vpcId='',subnets='',securityGroupIds='' But I'm getting the error: Invalid length for parameter…
niqui
  • 1,562
  • 1
  • 16
  • 28
0
votes
0 answers

Build a docker image on AWS Codebuild based on an image pulled from an ECR of another user: "no basic auth credentials"

I have a line in my Dockerfile like this: FROM 6*********.dkr.ecr.ap-southeast-1.amazonaws.com/*************:ff03401 This ECR is owned by another user. As recommended in this question, I am trying to log in by using these commands in the build…
user6269864
0
votes
0 answers

Add identifier to aws codebuild run name

I have an aws codebuild resource that I run each time with different parameters. Is there a way to add text to the run name so I can distingiush between the different build runs ? Now it looks like this : My project:guid exampe:…
0
votes
2 answers

Access CodeBuild Runtime in CodeDeploy

I'm building a simple hello world application in java (based on spring) which I launch to AWS through a pipeline. The buildspec.yml is defined as follows: version: 0.2 phases: install: runtime-versions: java: openjdk8 build: …
0
votes
1 answer

AWS CodeBuild failed with CommandNotFoundException for .net console application

I am doing a POC on creating a code pipeline on AWS. I am using EU-WEST-1 region and a .net 4.5 simple hello world application but getting the error below on build phase [Container] 2019/06/10 04:52:15 Running command & "C:\Program Files…
Prany
  • 2,078
  • 2
  • 13
  • 31
0
votes
1 answer

appspec.yml failed on AfterInstall Failed ScriptMissing

I am trying to setup CI-CD using AWS Source, CodeBuild and CodeDeploy(process of pipeline). Right now I am stuck at the step of deploy. individually CodeDeploy is work fine but if i'm using pipeline with tree step like(source->codebuild->codedeploy)…
0
votes
1 answer

AWS CodePipeline: Running multiple pipelines concurrently

I m trying to setup my CI/CD process with Bitbucket, CodeBuild and CodePipeline. So far, I have Webhook on Bitbucket that will run CodeBuild on custom docker image from ECR and upload the artifacts to Amazon S3 bucket which has versions enabled in…