Comments (1)
Commenting to bump @srijitm @gmansilla @hyandell @richardhu2013
I added:
const TestsAction = new codepipelineactions.CodeBuildAction({
actionName: 'Run-Tests',
outputs: [TestsArtifact],
input: repoType === 'backend' ? testsDownloadArtifact : buildOutputArtifact,
project: endToEndTestsProject,
executeBatchBuild: true,
combineBatchBuildArtifacts: true
});
In Pipeline project,
export class RunTestsProject extends codebuild.PipelineProject {
constructor(scope: cdk.Construct, id: string, props: RunTestsProjectProps) {
const { testsBucketName, testsBucketArn, targetEnv, repoType, codeCovTokenArn } = props
super(scope, id, {
projectName: id,
role: props.role,
environment: defaultEnvironment,
environmentVariables: projectEnvironmentVars({ testsBucketName, testsBucketArn, targetEnv, repoType, codeCovTokenArn }),
timeout: cdk.Duration.hours(3),
buildSpec: codebuild.BuildSpec.fromObject({
version: '0.2',
batch: {
'fast-fail': false,
'build-list': [
{
'identifier': 'build_1'
},
{
'identifier': 'build_2'
}
]
},
phases: {
install: {
'runtime-versions': {
nodejs: NODE_JS_VERSION
}
},
build: {
commands: [
'if [ ! -f "${CODEBUILD_SRC_DIR}/scripts/assume-cross-account-role.env" ]; then echo "assume-cross-account-this.role.env not found in repo" && aws s3 cp s3://${ARTIFACTS_BUCKET_NAME}/admin/cross-account/assume-cross-account-role.env ${CODEBUILD_SRC_DIR}/scripts/; else echo "Overriding assume-cross-account-role.env from repo"; fi',
'. ${CODEBUILD_SRC_DIR}/scripts/assume-cross-account-role.env',
'bash ${CODEBUILD_SRC_DIR}/scripts/final-tests.sh'
],
},
},
artifacts: {
files: '**/*'
},
})
});
}
}
Is there anything additional I need to se
[Container] 2022/09/20 00:17:08 Waiting for agent ping
--
2 | [Container] 2022/09/20 00:17:09 Waiting for DOWNLOAD_SOURCE
3 | [Container] 2022/09/20 00:19:23 Phase is DOWNLOAD_SOURCE
4 | [Container] 2022/09/20 00:19:24 CODEBUILD_SRC_DIR=/codebuild/output/src235984233/src
5 | [Container] 2022/09/20 00:19:24 YAML location is /codebuild/readonly/buildspec.yml
6 | [Container] 2022/09/20 00:19:26 Phase complete: DOWNLOAD_SOURCE State: FAILED
7 | [Container] 2022/09/20 00:19:26 Phase context status code: YAML_FILE_ERROR Message: yaml: unmarshal errors:
8 | line 2: cannot unmarshal !!str `0.2` into float64
at DOWNLOAD_SOURCE phase
from aws-simple-cicd.
Related Issues (20)
- NodeJS verison in buildspec HOT 1
- How to connect to private npm registry nexus from code-pipeline HOT 2
- Long time to deploy the pipeline HOT 10
- Cannot find module '.'
- Error running the deployment from the CI/CD pipeline
- Commands run in build.sh but not in test.sh or deploy.sh
- How to run deployment without using the profile used while running from local system HOT 1
- How to pass stage name from CI/CD pipeline to application? HOT 1
- How to run tests from a separate repository as part of the same pipeline
- How to increase the memory in codebuild
- Check if region is being used in config file
- Consistent repository naming convention
- Can the cross-account role be provisioned using CDK instead of CloudFormation
- Rollback support in case of a failure
- How to install node_modues in build stage and reuse them in deploy stage
- sharing artifacts across stages in codebuild breaks npm commands
- How to add badges through CodePipeline/Codebuild in souce projects
- Python 3.6 version in CustomCDKBucketDeployment - Where to update?
- Deploying spring boot service via Gitlab -> Terraform -> Lambda
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-simple-cicd.