Coder Social home page Coder Social logo

Comments (6)

onema avatar onema commented on August 29, 2024

At this time, I'm able to bypass this issue by using a condition in my buildspec.yml that skips the coverage report if the CODEBUILD_SOURCE_VERSION does not match a git-sha:

      - echo Submit coverage report to Codacy
      - if [[ $CODEBUILD_SOURCE_VERSION =~ [0-9a-f]{5,40} ]] ; then sbt codacyCoverage; fi

Is this an issue with the plugin? or is something I have to live with when using codebuild?

from sbt-codacy-coverage.

rtfpessoa avatar rtfpessoa commented on August 29, 2024

Hi @onema, isn't the content of CODEBUILD_SOURCE_VERSION always the commit uuid being built?

from sbt-codacy-coverage.

onema avatar onema commented on August 29, 2024

According to the docs

CODEBUILD_SOURCE_VERSION: For Amazon S3, the version ID associated with the input artifact. For AWS CodeCommit, the commit ID or branch name associated with the version of the source code to be built. For CODEBUILD_RESOLVED_SOURCE_VERSIONGitHub, the commit ID, branch name, or tag name associated with the version of the source code to be built.

Iā€™m not sure why the pr is a special case :(

from sbt-codacy-coverage.

rtfpessoa avatar rtfpessoa commented on August 29, 2024

We always need a commit to submit coverage. I think the best we can do is remove that variable and you can pass the commit from the CLI.

from sbt-codacy-coverage.

onema avatar onema commented on August 29, 2024

I found this in the AWS forums: Github pull requests are built twice

Basically, the simplest thing to do is to disable the PR from the CodeBuild webhook.

The GitHub checks will still run and get reported on PRs as long as the push event triggers CodeBuild.

screen shot 2018-09-10 at 1 10 30 pm

I'm closing this issue, as I consider this being a CodeBuild problem and not a plugin problem.

As usuall, thank you for the quick response!

from sbt-codacy-coverage.

onema avatar onema commented on August 29, 2024

For reference, this is the CodeBuild definition I've been using

codebuild-4scala_cfn.yml

from sbt-codacy-coverage.

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.