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

How to setup aws codepipeline with aws code commit + aws code build + elastic beanstalk ? without jenkins , teamcity or any other 3rd party tool?

How can I setup aws codepipeline with aws code commit + aws code build + elastic beanstalk without using jenkins, teamcity or any other 3rd party tool?
mahendra rathod
  • 1,438
  • 2
  • 15
  • 23
0
votes
0 answers

Karma fails to run PhantomJS unit tests on AWS CodeBuild but works locally

I've got an AngularJS project I'm putting together. The app runs and executes normally. The tests run and execute ... locally. When I do the build on AWS CodeBuild, I get the following errors in my log: [Container] 2017/01/17 21:54:36 [21:54:36]…
-1
votes
0 answers

Buildspec for spring boot application with JIB

I have created a spring boot APIs for mynotes application (maven java 17)and I used JIB to build docker image and push it to ecr repository. Now I want to create a buildspec for this project but when i write it like this I have encountred problesms…
-1
votes
1 answer

How do I automate a cloudformation.json (or yaml) file stored in codecommit to auto deploy via cloudformation

From what I can tell, if I create a buildspec.yaml, I can run it through codepipeline with a codebuild to run the cloud formation. However, to do this requires spinning up an ec2 to the execute the cli to cloudformaiton (I guess that's how it's…
-1
votes
1 answer

Resolve not a git repository error in code build?

getting the following error in logs in the build phase of the pipeline: > vue-cli-service build --mode=development ERROR Error loading vue.config.js: ERROR Error: Git returned with status 128: fatal: not a git repository (or any parent up to…
-1
votes
1 answer

How to reuse same AWS CodeBuild project in several CodePipelines?

I'm building AWS CodePipelines for my project using TypeScript and cdk. I also have a CodeBuild project that I've created in one of the pipelines (Pipeline A) and I'd like to reuse it in a different pipeline (Pipeline B). In Pipeline B I'm creating…
Gwen
  • 354
  • 1
  • 2
  • 10
-1
votes
1 answer

Upload jar to Lambda when I do CodeCommit in AWS

When i push changes in AWS CodeCommit Repo, I want to make JAR file with mvn install command for that Java Code and upload it to AWS Lambda function. Location of that Jar file should be inside src/main/target. Can anyone suggest buildspec.yaml file?
-1
votes
1 answer

How can I configure by CodeBuild to not trigger CodePipeline recursively

Currently my CodeBuild is cloning the source CodeCommit Repository, making some changes on it and pushing it to the origin, this causes the pipeline to be triggered recursively since the source code is changing every time. I want to stop the…
payal
  • 79
  • 7
-1
votes
1 answer

Best practice to deploy multi stacks in cloudFormation using codepipeline

I have a repository in CodeCommit, and in this repository, there are 3 branches dev, stage, and prod, in this repository there are multi stacks versioned, for…
-1
votes
1 answer

CodeBuild succeeds while Node build command has failed

Let's assume that we have AWS CodeBuild project which buildspec file contains the following: "phases": { "install": { "runtime-versions": { "nodejs": 14 } }, "build": { "commands": [ "echo Build started on `date`", "npm ci && npm…
Rufi
  • 2,529
  • 1
  • 20
  • 41
-1
votes
1 answer

docker build build-args containing spaces in a buildspec.yml file doesn't work

We are using CodeBuild AWS service, that use a buildspec.yml file to execute some command on different stage of the build (pre_build, build, post_build and others). I wanted to have a global buildspec.yml file, that could be edited thanks for…
-1
votes
1 answer

AWS : How to use CodeBuild to approve the approval rule template

whenever a PR is created code build triggers runs some tests and gives the result. based on the result I have a code commit approval rule template created which needs to be approved from codebuild. In this case, codebuild is not considering the…
-1
votes
1 answer

Terraform template_file : Error: failed to render : :16,32-33: Extra characters after interpolation expression;

I tried to load my buildspec.yml file in my terraform aws codebuild project but it failed: here is my buildspec : version: 0.2 env: parameter-store: PS_ASSET_S3_URL : "${ps_asset_url}" phases: pre_build: on-failure: ABORT …
Seifolah
  • 341
  • 3
  • 14
-1
votes
1 answer

connection timeout to codebuild project invoked by lambda function in python

I have a simple lambda function in python that invokes the codebuild project: import json, boto3, time def handler(event, context): print(event) # execute the testsuite (by triggering a codebuild project which executes the soapui TestSuite) …
MiGo
  • 551
  • 2
  • 7
  • 17
-1
votes
1 answer

Does aws codebuild support asp.net application?

Trying to build and publish asp.net(Not Core) application using aws CodeBuild. Does aws codebuild support traditional .net application? Gone through older thread on stackoverflow but still not clear. Tried with sample asp.net application on aws…
Nishant
  • 613
  • 3
  • 9
  • 21
1 2 3
96
97