Skip to content

Commit

Permalink
Update codecov settings (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zen Yui authored Aug 27, 2020
1 parent 58543b9 commit 8ede524
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,10 @@ test-local:

codecov:
FROM +test-local
# can make codecov a separate target if needed
RUN curl -s https://codecov.io/bash | bash || echo 'Codecov failed to upload'
ARG COMMIT_HASH=""
ARG BRANCH_NAME=""
ARG BUILD_NUMBER=""
RUN curl -s https://codecov.io/bash | bash -s - -B "${BRANCH_NAME}" -C "${COMMIT_HASH}" -b "${BUILD_NUMBER}"

test-all:
BUILD +test-local
Expand Down
3 changes: 2 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ node(NODE_TAG) {

// add constant args
earthRunner.addBuildArg("VERSION", buildInfo.version)
earthRunner.addBuildArg("COMMIT_HASH", buildInfo.commitHashShort)
earthRunner.addBuildArg("COMMIT_HASH", buildInfo.commitHash)
earthRunner.addBuildArg("CODECOV_TOKEN", CODECOV_TOKEN)
earthRunner.addBuildArg("BRANCH_NAME", buildInfo.branchName)

earthRunner.addSecret("JFROG_USERNAME")
earthRunner.addSecret("JFROG_PASSWORD")
Expand Down

0 comments on commit 8ede524

Please sign in to comment.