Giter VIP home page Giter VIP logo

Comments (1)

s1mrankaur avatar s1mrankaur commented on August 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.