From 8ede5245f221be3d27e2c8fbd89c697ffcaebda5 Mon Sep 17 00:00:00 2001 From: Zen Yui Date: Thu, 27 Aug 2020 02:11:51 -0400 Subject: [PATCH] Update codecov settings (#79) --- Earthfile | 6 ++++-- Jenkinsfile | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) 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")