diff --git a/Earthfile b/Earthfile index d785befd..536ea679 100644 --- a/Earthfile +++ b/Earthfile @@ -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 diff --git a/Jenkinsfile b/Jenkinsfile index 8ad72925..97963c16 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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")