Comments (6)
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.
Hi @onema, isn't the content of CODEBUILD_SOURCE_VERSION
always the commit uuid being built?
from sbt-codacy-coverage.
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.
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.
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.
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.
For reference, this is the CodeBuild definition I've been using
from sbt-codacy-coverage.
Related Issues (20)
- sbt dependency error HOT 7
- Scala 2.11 HOT 2
- Failed to publish metrics when using Play 2.5 HOT 6
- Codacy not auto-creating directories it needs HOT 3
- Codacy not publishing any coverage results HOT 2
- Inconsistent version information in README.md HOT 1
- codacyCoverage task fails on shippable when build PR from fork HOT 4
- MissingValueException when running on Jenkins HOT 2
- codacyCoverage not working on Travis CI (commitUuid not found?) HOT 5
- Reason: not found HOT 1
- Publish for sbt 1.0.0 HOT 2
- Stack overflow with multiple-project build HOT 2
- codacyCoverage returns "Failed to upload data. Reason: Not Found" HOT 1
- java.lang.RuntimeException: Failed to upload data. Reason: not found HOT 7
- oracle jdk 10 doesn't work HOT 10
- AWS CodeBuild - Could not retrieve the current commit uuid HOT 3
- Dependency on out-of-date circe revision causes breakage when integrated with plugins using newer circe versions. HOT 9
- Codacy is unable to locate files when generating a report using sbt-scoverage 1.1.0 HOT 1
- Not working with Scala 2.11.x? HOT 4
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 sbt-codacy-coverage.